Browse Source

Additional fixes

pull/15306/head
Maksym Tsymbarov 7 months ago
parent
commit
7f8d2552cf
  1. 4
      ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts
  2. 4
      ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts
  3. 4
      ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts
  4. 2
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html
  5. 3
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts

4
ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts

@ -105,8 +105,4 @@ export class CreateRelationConfigComponent extends RuleNodeConfigurationComponen
configuration.entityTypePattern = configuration.entityTypePattern ? configuration.entityTypePattern.trim() : null;
return configuration;
}
getDirectionTypeTranslations(type: string) {
return this.directionTypeTranslations.get(type as EntitySearchDirection);
}
}

4
ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts

@ -99,8 +99,4 @@ export class DeleteRelationConfigComponent extends RuleNodeConfigurationComponen
configuration.entityNamePattern = configuration.entityNamePattern ? configuration.entityNamePattern.trim() : null;
return configuration;
}
getDirectionTypeTranslations(type: string) {
return this.directionTypeTranslations.get(type as EntitySearchDirection);
}
}

4
ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts

@ -77,8 +77,4 @@ export class DeduplicationConfigComponent extends RuleNodeConfigurationComponent
protected validatorTriggers(): string[] {
return ['strategy'];
}
getDeduplicationStrategiesTranslations(strategy: string) {
return this.deduplicationStrategiesTranslations.get(strategy as FetchMode);
}
}

2
ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html

@ -29,7 +29,7 @@
<div>
<h6>{{ NotificationDeliveryMethodInfoMap.get(errorStat.key).name | translate }}</h6>
<table class="tb-table-list">
@for (error of errorStatEntries; track error) {
@for (error of (errorStat.value | keyvalue); track error) {
<tr>
<td>
<mat-chip>{{ error.key }}</mat-chip>

3
ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts

@ -50,7 +50,8 @@ export class SentErrorDialogComponent extends DialogComponent<SentErrorDialogCom
super(store, router, dialogRef);
this.errorStats = data.notificationRequest.stats.errors;
this.errorStatEntries = (Object.entries(this.errorStats) as Array<[NotificationDeliveryMethod, { [k: string]: string }]>).map(([key, value]) => ({ key, value })); }
this.errorStatEntries = (Object.entries(this.errorStats) as Array<[NotificationDeliveryMethod, { [k: string]: string }]>).map(([key, value]) => ({ key, value }));
}
cancel(): void {
this.dialogRef.close(null);

Loading…
Cancel
Save