Browse Source

Merge branch 'fix-deletion-and-edit-manual'

pull/6090/head
Eduardo Almeida 4 days ago
parent
commit
5b0e8528c7
  1. 5
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts
  2. 3
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

5
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -261,10 +261,7 @@ export class GfAssetProfileDialogComponent implements OnDestroy, OnInit {
} }
public get canEditAssetProfileIdentifier() { public get canEditAssetProfileIdentifier() {
return ( return this.assetProfile?.assetClass;
this.assetProfile?.assetClass &&
!['MANUAL'].includes(this.assetProfile?.dataSource)
);
} }
public get canSaveAssetProfileIdentifier() { public get canSaveAssetProfileIdentifier() {

3
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.html

@ -73,7 +73,8 @@
!adminMarketDataService.hasPermissionToDeleteAssetProfile({ !adminMarketDataService.hasPermissionToDeleteAssetProfile({
activitiesCount: assetProfile?.activitiesCount, activitiesCount: assetProfile?.activitiesCount,
isBenchmark: isBenchmark, isBenchmark: isBenchmark,
symbol: data.symbol symbol: data.symbol,
watchedByCount: assetProfile?.watchedByCount
}) })
" "
(click)=" (click)="

Loading…
Cancel
Save