Skip to content

Commit 2d7df6c

Browse files
committed
Adding basic information to tags.
1 parent 487d865 commit 2d7df6c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export class SharedTagModel {
22
id: number;
33
name: string;
4+
description: string;
5+
isLocked: boolean;
46
}

eform-client/src/app/common/modules/eform-shared-tags/components/shared-tags/shared-tags.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 mat-dialog-title>{{ 'Tags management' | translate }}</h3>
2929
</div>
3030
<div class="spacer"></div>
3131
<div>
32-
<button
32+
<button *ngIf="!tag.isLocked"
3333
color="accent"
3434
mat-icon-button
3535
(click)="showEditTagModal(tag)"
@@ -38,7 +38,7 @@ <h3 mat-dialog-title>{{ 'Tags management' | translate }}</h3>
3838
>
3939
<mat-icon>edit</mat-icon>
4040
</button>
41-
<button
41+
<button *ngIf="!tag.isLocked"
4242
mat-icon-button
4343
color="warn"
4444
(click)="showDeleteTagModal(tag)"

eform-client/src/app/common/modules/eform-shared-tags/components/shared-tags/shared-tags.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material/dialog';
1414
export class SharedTagsComponent implements OnInit {
1515
dialogRef = inject<MatDialogRef<SharedTagsComponent>>(MatDialogRef);
1616

17-
public availableTags: CommonDictionaryModel[] = [];
17+
public availableTags: SharedTagModel[] = [];
1818
public showMultipleCreateBtn: boolean = false;
1919
public showCreateTag: EventEmitter<void> = new EventEmitter<void>();
2020
public showEditTag: EventEmitter<SharedTagModel> = new EventEmitter<SharedTagModel>();

0 commit comments

Comments
 (0)