RED-6269
This commit is contained in:
parent
47cf2559b1
commit
ba1e6247d8
@ -1,11 +1,5 @@
|
|||||||
<div *ngIf="licenses$ | async as licenses" class="iqser-input-group w-400">
|
<div *ngIf="licenses$ | async as licenses" class="iqser-input-group w-400">
|
||||||
<mat-select
|
<mat-select (valueChange)="licenseChanged($event)" *ngIf="value" [(ngModel)]="value" [iqserHelpMode]="'license_information'">
|
||||||
(valueChange)="licenseChanged($event)"
|
|
||||||
*ngIf="value"
|
|
||||||
[(ngModel)]="value"
|
|
||||||
[disabled]="isReadonly$ | async"
|
|
||||||
[iqserHelpMode]="'license_information'"
|
|
||||||
>
|
|
||||||
<mat-select-trigger>
|
<mat-select-trigger>
|
||||||
<ng-container *ngTemplateOutlet="licenseInfo; context: { license: value }"></ng-container>
|
<ng-container *ngTemplateOutlet="licenseInfo; context: { license: value }"></ng-container>
|
||||||
</mat-select-trigger>
|
</mat-select-trigger>
|
||||||
|
|||||||
@ -26,7 +26,6 @@ export class LicenseSelectComponent {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
readonly isReadonly$ = this._permissionsService.has$(ROLES.license.edit).pipe(map(has => !has));
|
|
||||||
|
|
||||||
constructor(readonly licenseService: LicenseService, private readonly _permissionsService: IqserPermissionsService) {}
|
constructor(readonly licenseService: LicenseService, private readonly _permissionsService: IqserPermissionsService) {}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user