Browse Source

Bugfix/fix tags in readonly mode of tags selector component (#7461)

* Fix tags in read-only mode

* Update changelog
pull/7267/merge
Thomas Kaul 1 day ago
committed by GitHub
parent
commit
7635bea138
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 10
      libs/ui/src/lib/tags-selector/tags-selector.component.html

1
CHANGELOG.md

@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed the time in market of the portfolio summary to be empty if there is no activity - Fixed the time in market of the portfolio summary to be empty if there is no activity
- Fixed an issue with the delete button in the activities filter component - Fixed an issue with the delete button in the activities filter component
- Fixed the tags in the read-only mode of the tags selector component
## 3.35.0 - 2026-07-27 ## 3.35.0 - 2026-07-27

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

@ -3,22 +3,20 @@
@if (readonly) { @if (readonly) {
<div class="h5" i18n>Tags</div> <div class="h5" i18n>Tags</div>
@if ( @if (
(tags && tags.length > 0) || (tagsReadOnly && tagsReadOnly.length > 0) tagsSelected().length > 0 || (tagsReadOnly && tagsReadOnly.length > 0)
) { ) {
<mat-chip-listbox> <mat-chip-listbox>
@if (tagsReadOnly) { @if (tagsReadOnly) {
@for (tag of tagsReadOnly; track tag) { @for (tag of tagsReadOnly; track tag.id) {
<mat-chip-option disabled>{{ tag.name }}</mat-chip-option> <mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
} }
} }
@if (tags) { @for (tag of tagsSelected(); track tag.id) {
@for (tag of tags; track tag) {
<mat-chip-option disabled>{{ tag.name }}</mat-chip-option> <mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
} }
}
</mat-chip-listbox> </mat-chip-listbox>
} @else { } @else {
<div>-</div> <div></div>
} }
} @else { } @else {
<mat-form-field appearance="outline" class="w-100 without-hint"> <mat-form-field appearance="outline" class="w-100 without-hint">

Loading…
Cancel
Save