Browse Source

Add hyphen to readonly state

pull/4301/head
Thomas Kaul 7 months ago
parent
commit
1384c01fa9
  1. 14
      libs/ui/src/lib/tags-selector/tags-selector.component.html

14
libs/ui/src/lib/tags-selector/tags-selector.component.html

@ -2,11 +2,15 @@
<div class="col"> <div class="col">
@if (readonly) { @if (readonly) {
<div class="h5" i18n>Tags</div> <div class="h5" i18n>Tags</div>
<mat-chip-listbox> @if (tags?.length > 0) {
@for (tag of tags; track tag) { <mat-chip-listbox>
<mat-chip-option disabled>{{ tag.name }}</mat-chip-option> @for (tag of tags; track tag) {
} <mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
</mat-chip-listbox> }
</mat-chip-listbox>
} @else {
<div>-</div>
}
} @else { } @else {
<mat-form-field appearance="outline" class="w-100 without-hint"> <mat-form-field appearance="outline" class="w-100 without-hint">
<mat-label i18n>Tags</mat-label> <mat-label i18n>Tags</mat-label>

Loading…
Cancel
Save