Browse Source

Fixed "Attach report" controls binding in Send notification dialog (#16704)

pull/16752/head
Maksym Tsymbarov 2 weeks ago
committed by GitHub
parent
commit
1dbcb30eee
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 70
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html

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

@ -96,42 +96,42 @@
}
}
</section>
@if (!isSysAdmin()) {
<div class="tb-form-panel stroked no-padding-bottom no-gap mb-5">
<mat-slide-toggle class="toggle" formControlName="attachReport">
<div tb-hint-tooltip-icon="{{ 'notification.attach-report-hint' | translate }}" translate>
notification.attach-report
</div>
</mat-slide-toggle>
@if (notificationRequestForm.get('template.configuration.attachReport').value) {
<div class="tb-form-panel outlined">
<tb-report-template-autocomplete
required
appearance="outline"
[type]="ReportTemplateType.REPORT"
includeCustomers
showError
formControlName="reportTemplateId">
<span tb-error>{{'report-template.report-template-required' | translate}}</span>
</tb-report-template-autocomplete>
<tb-entity-autocomplete
appearance="outline"
required
useFullEntityId
[entityType]="entityType.USER"
formControlName="userId">
</tb-entity-autocomplete>
<tb-timezone-select
appearance="outline"
userTimezoneByDefault
required
formControlName="timezone">
</tb-timezone-select>
</div>
}
</div>
}
</section>
@if (!isSysAdmin()) {
<div class="tb-form-panel stroked no-padding-bottom no-gap mb-5">
<mat-slide-toggle class="toggle" formControlName="attachReport">
<div tb-hint-tooltip-icon="{{ 'notification.attach-report-hint' | translate }}" translate>
notification.attach-report
</div>
</mat-slide-toggle>
@if (notificationRequestForm.get('template.configuration.attachReport').value) {
<div class="tb-form-panel outlined">
<tb-report-template-autocomplete
required
appearance="outline"
[type]="ReportTemplateType.REPORT"
includeCustomers
showError
formControlName="reportTemplateId">
<span tb-error>{{'report-template.report-template-required' | translate}}</span>
</tb-report-template-autocomplete>
<tb-entity-autocomplete
appearance="outline"
required
useFullEntityId
[entityType]="entityType.USER"
formControlName="userId">
</tb-entity-autocomplete>
<tb-timezone-select
appearance="outline"
userTimezoneByDefault
required
formControlName="timezone">
</tb-timezone-select>
</div>
}
</div>
}
</section>
}
</div>

Loading…
Cancel
Save