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 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

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

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

Loading…
Cancel
Save