This commit is contained in:
Timo Bejan 2023-02-27 11:34:03 +02:00
parent c48ef2c750
commit 842fd1eef3
2 changed files with 1 additions and 8 deletions

View File

@ -1,12 +1,6 @@
<div *ngIf="licenses$ | async as licenses" class="iqser-input-group w-400">
<mat-form-field>
<mat-select
(valueChange)="licenseChanged($event)"
*ngIf="value"
[(ngModel)]="value"
[disabled]="isReadonly$ | async"
[iqserHelpMode]="'license_information'"
>
<mat-select (valueChange)="licenseChanged($event)" *ngIf="value" [(ngModel)]="value" [iqserHelpMode]="'license_information'">
<mat-select-trigger>
<ng-container *ngTemplateOutlet="licenseInfo; context: { license: value }"></ng-container>
</mat-select-trigger>

View File

@ -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) {}