|
@ -13,6 +13,7 @@ import { |
|
|
LineChartItem, |
|
|
LineChartItem, |
|
|
User |
|
|
User |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
|
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
import { GfActivitiesTableComponent } from '@ghostfolio/ui/activities-table'; |
|
|
import { GfActivitiesTableComponent } from '@ghostfolio/ui/activities-table'; |
|
|
import { GfDataProviderCreditsComponent } from '@ghostfolio/ui/data-provider-credits'; |
|
|
import { GfDataProviderCreditsComponent } from '@ghostfolio/ui/data-provider-credits'; |
|
|
import { translate } from '@ghostfolio/ui/i18n'; |
|
|
import { translate } from '@ghostfolio/ui/i18n'; |
|
@ -95,6 +96,7 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit { |
|
|
public dividendYieldPercentWithCurrencyEffect: number; |
|
|
public dividendYieldPercentWithCurrencyEffect: number; |
|
|
public feeInBaseCurrency: number; |
|
|
public feeInBaseCurrency: number; |
|
|
public firstBuyDate: string; |
|
|
public firstBuyDate: string; |
|
|
|
|
|
public hasPermissionToCreateTags: boolean; |
|
|
public historicalDataItems: LineChartItem[]; |
|
|
public historicalDataItems: LineChartItem[]; |
|
|
public investment: number; |
|
|
public investment: number; |
|
|
public investmentPrecision = 2; |
|
|
public investmentPrecision = 2; |
|
@ -403,6 +405,11 @@ export class GfHoldingDetailDialogComponent implements OnDestroy, OnInit { |
|
|
if (state?.user) { |
|
|
if (state?.user) { |
|
|
this.user = state.user; |
|
|
this.user = state.user; |
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionToCreateTags = hasPermission( |
|
|
|
|
|
this.user.permissions, |
|
|
|
|
|
permissions.createTag |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
this.tagsAvailable = |
|
|
this.tagsAvailable = |
|
|
this.user?.tags?.map((tag) => { |
|
|
this.user?.tags?.map((tag) => { |
|
|
return { |
|
|
return { |
|
|