|
|
@ -1,5 +1,4 @@ |
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
import { TAG_ID_EXCLUDE_FROM_ANALYSIS } from '@ghostfolio/common/config'; |
|
|
|
|
|
import { CreateAccountDto, UpdateAccountDto } from '@ghostfolio/common/dtos'; |
|
|
import { CreateAccountDto, UpdateAccountDto } from '@ghostfolio/common/dtos'; |
|
|
import { getStringOrNull } from '@ghostfolio/common/helper'; |
|
|
import { getStringOrNull } from '@ghostfolio/common/helper'; |
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
@ -86,19 +85,13 @@ export class GfCreateOrUpdateAccountDialogComponent { |
|
|
permissions.createOwnTag |
|
|
permissions.createOwnTag |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.tagsAvailable = [ |
|
|
this.tagsAvailable = |
|
|
...(this.data.user?.tags ?? []), |
|
|
this.data.user?.tags?.map((tag) => { |
|
|
{ |
|
|
return { |
|
|
id: TAG_ID_EXCLUDE_FROM_ANALYSIS, |
|
|
...tag, |
|
|
name: 'EXCLUDE_FROM_ANALYSIS', |
|
|
name: translate(tag.name) |
|
|
userId: null |
|
|
}; |
|
|
} |
|
|
}) ?? []; |
|
|
].map((tag) => { |
|
|
|
|
|
return { |
|
|
|
|
|
...tag, |
|
|
|
|
|
name: translate(tag.name) |
|
|
|
|
|
}; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.accountForm = this.formBuilder.group({ |
|
|
this.accountForm = this.formBuilder.group({ |
|
|
accountId: [{ disabled: true, value: this.data.account.id }], |
|
|
accountId: [{ disabled: true, value: this.data.account.id }], |
|
|
|