Browse Source

UI: Change notification target

pull/8212/head
Vladyslav_Prykhodko 4 years ago
parent
commit
aab053b71c
  1. 36
      ui-ngx/src/app/modules/home/pages/notification-center/targets-table/target-notification-dialog.component.html

36
ui-ngx/src/app/modules/home/pages/notification-center/targets-table/target-notification-dialog.component.html

@ -55,23 +55,25 @@
</mat-option>
</mat-select>
</mat-form-field>
<tb-entity-list
required
formControlName="usersIds"
[entityType]="entityType.USER"
labelText="{{ 'user.user-list' | translate }}"
placeholderText="{{ 'user.user' | translate }}"
requiredText="{{ 'user.user-list-required' | translate }}"
*ngIf="targetNotificationForm.get('configuration.usersFilter.type').value === notificationTargetConfigType.USER_LIST">
</tb-entity-list>
<section
*ngIf="targetNotificationForm.get('configuration.usersFilter.type').value === notificationTargetConfigType.CUSTOMER_USERS">
<tb-entity-autocomplete
required
formControlName="customerId"
[entityType]="entityType.CUSTOMER">
</tb-entity-autocomplete>
</section>
<ng-container [ngSwitch]="targetNotificationForm.get('configuration.usersFilter.type').value">
<ng-container *ngSwitchCase="notificationTargetConfigType.USER_LIST">
<tb-entity-list
required
formControlName="usersIds"
[entityType]="entityType.USER"
labelText="{{ 'user.user-list' | translate }}"
placeholderText="{{ 'user.user' | translate }}"
requiredText="{{ 'user.user-list-required' | translate }}">
</tb-entity-list>
</ng-container>
<ng-container *ngSwitchCase="notificationTargetConfigType.CUSTOMER_USERS">
<tb-entity-autocomplete
required
formControlName="customerId"
[entityType]="entityType.CUSTOMER">
</tb-entity-autocomplete>
</ng-container>
</ng-container>
</section>
<section *ngIf="targetNotificationForm.get('configuration.type').value === notificationTargetType.SLACK">
<label class="tb-title">{{ 'notification.recipient-type' | translate }}</label>

Loading…
Cancel
Save