@veloceapps/sdk 9.0.0-1 → 9.0.0-10

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,6 +98,9 @@ class DocGenComponent {
98
98
  }
99
99
  initialize() {
100
100
  this.templateApiName = this.flowInfo.flow?.properties.templates?.docGen ?? '';
101
+ if (this.flowInfo.isLegacy && !this.templateApiName) {
102
+ return;
103
+ }
101
104
  this.generateUIDefinition$()
102
105
  .pipe(tap(uiDef => {
103
106
  if (!uiDef) {
@@ -225,6 +228,9 @@ class GuidedSellingComponent {
225
228
  }
226
229
  initialize() {
227
230
  this.templateApiName = this.flowInfo.flow?.properties.templates?.guidedSelling ?? '';
231
+ if (this.flowInfo.isLegacy && !this.templateApiName) {
232
+ return;
233
+ }
228
234
  this.generateUIDefinition$()
229
235
  .pipe(tap(uiDef => {
230
236
  if (!uiDef) {
@@ -335,6 +341,9 @@ class FlowHeaderComponent {
335
341
  }
336
342
  initialize() {
337
343
  this.templateApiName = this.flowInfo.flow?.properties.templates?.flowHeader ?? '';
344
+ if (this.flowInfo.isLegacy && !this.templateApiName) {
345
+ return;
346
+ }
338
347
  this.generateUIDefinition$()
339
348
  .pipe(tap(uiDef => {
340
349
  if (!uiDef) {
@@ -813,7 +822,7 @@ class FlowService {
813
822
  return this.legacyApplyConfiguration();
814
823
  }
815
824
  else {
816
- return this.configurationStateService.saveConfiguration('', true).pipe(switchMap(() => this.configurationStateService.cancelConfiguration()), switchMap(() => this.flowStateService.dispatch$(UITemplateType.FLOW_ENGINE, 'MODIFY_ASSETS', {
825
+ return this.configurationStateService.saveConfiguration(true).pipe(switchMap(() => this.configurationStateService.cancelConfiguration()), switchMap(() => this.flowStateService.dispatch$(UITemplateType.FLOW_ENGINE, 'MODIFY_ASSETS', {
817
826
  addConfiguringAssetId: true,
818
827
  enable: true,
819
828
  })));