UI: Hide edit button if entity not selected
This commit is contained in:
parent
1d3a9a25b3
commit
ce6046844a
@ -35,7 +35,7 @@
|
|||||||
(click)="clear()">
|
(click)="clear()">
|
||||||
<mat-icon class="material-icons">close</mat-icon>
|
<mat-icon class="material-icons">close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value && !disabled && editProfileEnabled"
|
<button *ngIf="selectAssetProfileFormGroup.get('assetProfile').value?.id && !disabled && editProfileEnabled"
|
||||||
type="button"
|
type="button"
|
||||||
matSuffix mat-icon-button aria-label="Edit"
|
matSuffix mat-icon-button aria-label="Edit"
|
||||||
matTooltip="{{ 'asset-profile.edit' | translate }}"
|
matTooltip="{{ 'asset-profile.edit' | translate }}"
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
(click)="clear()">
|
(click)="clear()">
|
||||||
<mat-icon class="material-icons">close</mat-icon>
|
<mat-icon class="material-icons">close</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value && !disabled && editProfileEnabled"
|
<button *ngIf="selectDeviceProfileFormGroup.get('deviceProfile').value?.id && !disabled && editProfileEnabled"
|
||||||
type="button"
|
type="button"
|
||||||
matSuffix mat-icon-button aria-label="Edit"
|
matSuffix mat-icon-button aria-label="Edit"
|
||||||
matTooltip="{{ 'device-profile.edit' | translate }}"
|
matTooltip="{{ 'device-profile.edit' | translate }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user