Browse Source
Feature/prepare permission to delete asset profile of currency (#3833)
pull/3824/head^2
Thomas Kaul
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
2 deletions
-
apps/client/src/app/components/admin-market-data/admin-market-data.service.ts
|
|
@ -2,7 +2,10 @@ import { ConfirmationDialogType } from '@ghostfolio/client/core/notification/con |
|
|
|
import { NotificationService } from '@ghostfolio/client/core/notification/notification.service'; |
|
|
|
import { AdminService } from '@ghostfolio/client/services/admin.service'; |
|
|
|
import { ghostfolioScraperApiSymbolPrefix } from '@ghostfolio/common/config'; |
|
|
|
import { getCurrencyFromSymbol, isCurrency } from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
getCurrencyFromSymbol, |
|
|
|
isDerivedCurrency |
|
|
|
} from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
AssetProfileIdentifier, |
|
|
|
AdminMarketDataItem |
|
|
@ -74,7 +77,7 @@ export class AdminMarketDataService { |
|
|
|
return ( |
|
|
|
activitiesCount === 0 && |
|
|
|
!isBenchmark && |
|
|
|
!isCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
|
!isDerivedCurrency(getCurrencyFromSymbol(symbol)) && |
|
|
|
!symbol.startsWith(ghostfolioScraperApiSymbolPrefix) |
|
|
|
); |
|
|
|
} |
|
|
|