|
|
@ -1,4 +1,14 @@ |
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col"> |
|
|
|
@if (readonly) { |
|
|
|
<div class="h5" i18n>Tags</div> |
|
|
|
<mat-chip-listbox> |
|
|
|
@for (tag of tags; track tag) { |
|
|
|
<mat-chip-option disabled>{{ tag.name }}</mat-chip-option> |
|
|
|
} |
|
|
|
</mat-chip-listbox> |
|
|
|
} @else { |
|
|
|
<mat-form-field appearance="outline" class="w-100 without-hint"> |
|
|
|
<mat-label i18n>Tags</mat-label> |
|
|
|
<mat-chip-grid #tagsChipList> |
|
|
|
@for (tag of tagsSelected(); track tag.id) { |
|
|
@ -29,4 +39,7 @@ |
|
|
|
</mat-option> |
|
|
|
} |
|
|
|
</mat-autocomplete> |
|
|
|
</mat-form-field> |
|
|
|
</mat-form-field> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|