Browse Source
Feature/only show used tags in tag selector of assistant (#2943)
* Only show used tags in tag selector
* Update changelog
pull/2928/head^2
Thomas Kaul
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
3 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/assistant/assistant.component.ts
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the tag selector to only show used tags in the assistant (experimental) |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed the export in the lazy-loaded activities table on the portfolio activities page (experimental) |
|
|
|
|
|
@ -136,10 +136,8 @@ export class AssistantComponent implements OnChanges, OnDestroy, OnInit { |
|
|
|
) {} |
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
|
const { tags } = this.dataService.fetchInfo(); |
|
|
|
|
|
|
|
this.accounts = this.user?.accounts; |
|
|
|
this.tags = tags.map(({ id, name }) => { |
|
|
|
this.tags = this.user?.tags.map(({ id, name }) => { |
|
|
|
return { |
|
|
|
id, |
|
|
|
name: translate(name) |
|
|
|