diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html index 1ebd5a098e..7fbde30dce 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html @@ -59,10 +59,8 @@
- +
notification.at-least-one-should-be-selected
+ [stepControl]="emailTemplateForm" #emailStep="matStep"> {{ 'notification.delivery-method.email' | translate }}
@@ -228,8 +226,14 @@ {{ 'notification.subject-required' | translate }} - notification.message + notification.message + + {{ 'notification.message-required' | translate }} + diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss index 0bf2baebc2..55542b3905 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.scss @@ -27,6 +27,22 @@ .tb-title { font-size: 16px; line-height: 24px; + &.tb-required::after { + font-size: initial; + content: "*"; + } + + &.tb-error { + color: var(--mdc-theme-error, #f44336); + + &.tb-required::after { + color: var(--mdc-theme-error, #f44336); + } + } + } + + .tb-mat-error { + font-size: 13px; } .tb-hint { diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html index 414bf11732..6662c38fd1 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.html @@ -167,7 +167,7 @@ + [stepControl]="emailTemplateForm" #emailStep="matStep"> {{ 'notification.delivery-method.email' | translate }}
@@ -186,8 +186,14 @@ {{ 'notification.subject-required' | translate }} - notification.message - + notification.message + + + {{ 'notification.message-required' | translate }} + diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.scss b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.scss index 1fc1b427d0..9c52098ac9 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.scss @@ -27,6 +27,23 @@ .tb-title { font-size: 16px; line-height: 24px; + + &.tb-required::after { + font-size: initial; + content: "*"; + } + + &.tb-error { + color: var(--mdc-theme-error, #f44336); + + &.tb-required::after { + color: var(--mdc-theme-error, #f44336); + } + } + } + + .tb-mat-error { + font-size: 13px; } .tb-hint { diff --git a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts index 5fb10e7374..b4ba480732 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/template/template-notification-dialog.component.ts @@ -138,7 +138,7 @@ export class TemplateNotificationDialogComponent } nextStepLabel(): string { - if (this.selectedIndex >= this.maxStepperIndex) { + if (this.selectedIndex >= this.maxStepperIndex && this.selectedIndex !== 0) { return (this.data.isAdd || this.data.isCopy) ? 'action.add' : 'action.save'; } return 'action.next';