Browse Source

UI: Allow edit difference step in mobile bundle

pull/11835/head
Vladyslav_Prykhodko 2 years ago
parent
commit
0d04abd079
  1. 2
      ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-dialog.component.html
  2. 5
      ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-dialog.component.ts

2
ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-dialog.component.html

@ -29,7 +29,7 @@
</mat-progress-bar>
<div *ngIf="!(isLoading$ | async)"></div>
<div mat-dialog-content class="xs:!p-0">
<mat-horizontal-stepper [linear]="true" labelPosition="end" #addMobileBundle [orientation]="(stepperOrientation | async)"
<mat-horizontal-stepper [linear]="isAdd" labelPosition="end" #addMobileBundle [orientation]="(stepperOrientation | async)"
(selectionChange)="changeStep($event)">
<ng-template matStepperIcon="edit">
<mat-icon>check</mat-icon>

5
ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-dialog.component.ts

@ -79,6 +79,8 @@ export class MobileBundleDialogComponent extends DialogComponent<MobileBundleDia
layoutConfig: [null]
});
isAdd = false;
constructor(protected store: Store<AppState>,
protected router: Router,
protected dialogRef: MatDialogRef<MobileBundleDialogComponent, MobileAppBundle>,
@ -90,7 +92,8 @@ export class MobileBundleDialogComponent extends DialogComponent<MobileBundleDia
super(store, router, dialogRef);
if (this.data.isAdd) {
this.dialogTitle = 'mobile.add-bundle'
this.dialogTitle = 'mobile.add-bundle';
this.isAdd = true;
}
this.stepperOrientation = this.breakpointObserver.observe(MediaBreakpoints['gt-xs'])

Loading…
Cancel
Save