|
|
|
@ -54,7 +54,6 @@ export class TemplateNotificationDialogComponent |
|
|
|
@ViewChild('notificationTemplateStepper', {static: true}) notificationTemplateStepper: MatStepper; |
|
|
|
|
|
|
|
stepperOrientation: Observable<StepperOrientation>; |
|
|
|
stepperLabelPosition: Observable<'bottom' | 'end'>; |
|
|
|
|
|
|
|
dialogTitle = 'notification.edit-notification-template'; |
|
|
|
|
|
|
|
@ -82,9 +81,6 @@ export class TemplateNotificationDialogComponent |
|
|
|
this.stepperOrientation = this.breakpointObserver.observe(MediaBreakpoints['gt-sm']) |
|
|
|
.pipe(map(({matches}) => matches ? 'horizontal' : 'vertical')); |
|
|
|
|
|
|
|
this.stepperLabelPosition = this.breakpointObserver.observe(MediaBreakpoints['gt-md']) |
|
|
|
.pipe(map(({matches}) => matches ? 'end' : 'bottom')); |
|
|
|
|
|
|
|
if (isDefinedAndNotNull(this.data?.predefinedType)) { |
|
|
|
this.hideSelectType = true; |
|
|
|
this.templateNotificationForm.get('notificationType').setValue(this.data.predefinedType, {emitEvent: false}); |
|
|
|
|