Enhancement: show ID when editing objects (#6003)

This commit is contained in:
shamoon 2024-03-04 15:21:48 -08:00 committed by GitHub
parent 6779042242
commit 00a8f0cd6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 256 additions and 226 deletions

View file

@ -1,6 +1,9 @@
<form [formGroup]="objectForm" (ngSubmit)="save()" autocomplete="off">
<div class="modal-header">
<h4 class="modal-title" id="modal-basic-title">{{getTitle()}}</h4>
@if (object?.id) {
<span class="badge bg-primary text-primary-text-contrast ms-2">ID: {{object.id}}</span>
}
<button type="button" [disabled]="!closeEnabled" class="btn-close" aria-label="Close" (click)="cancel()">
</button>
</div>