Browse Source

UI: Set label position to bottom

pull/9288/head
Artem Dzhereleiko 3 years ago
parent
commit
d7800e06a1
  1. 2
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.component.html
  2. 4
      ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts

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

@ -29,7 +29,7 @@
</mat-progress-bar> </mat-progress-bar>
<div mat-dialog-content> <div mat-dialog-content>
<mat-horizontal-stepper linear #createNotification <mat-horizontal-stepper linear #createNotification
[labelPosition]="(stepperLabelPosition | async)" labelPosition="bottom"
[orientation]="(stepperOrientation | async)" [orientation]="(stepperOrientation | async)"
(selectionChange)="changeStep($event)"> (selectionChange)="changeStep($event)">
<ng-template matStepperIcon="edit"> <ng-template matStepperIcon="edit">

4
ui-ngx/src/app/modules/home/pages/notification/sent/sent-notification-dialog.componet.ts

@ -63,7 +63,6 @@ export class SentNotificationDialogComponent extends
@ViewChild('createNotification', {static: true}) createNotification: MatStepper; @ViewChild('createNotification', {static: true}) createNotification: MatStepper;
stepperOrientation: Observable<StepperOrientation>; stepperOrientation: Observable<StepperOrientation>;
stepperLabelPosition: Observable<'bottom' | 'end'>;
isAdd = true; isAdd = true;
entityType = EntityType; entityType = EntityType;
@ -102,9 +101,6 @@ export class SentNotificationDialogComponent extends
this.stepperOrientation = this.breakpointObserver.observe(MediaBreakpoints['gt-sm']) this.stepperOrientation = this.breakpointObserver.observe(MediaBreakpoints['gt-sm'])
.pipe(map(({matches}) => matches ? 'horizontal' : 'vertical')); .pipe(map(({matches}) => matches ? 'horizontal' : 'vertical'));
this.stepperLabelPosition = this.breakpointObserver.observe(MediaBreakpoints['gt-md'])
.pipe(map(({matches}) => matches ? 'end' : 'bottom'));
this.notificationRequestForm = this.fb.group({ this.notificationRequestForm = this.fb.group({
useTemplate: [false], useTemplate: [false],
templateId: [{value: null, disabled: true}, Validators.required], templateId: [{value: null, disabled: true}, Validators.required],

Loading…
Cancel
Save