|
|
@ -92,7 +92,7 @@ export class GfCreateOrUpdateActivityDialogComponent { |
|
|
protected currentMarketPrice: number | null = null; |
|
|
protected currentMarketPrice: number | null = null; |
|
|
protected defaultDateFormat: string; |
|
|
protected defaultDateFormat: string; |
|
|
protected defaultLookupItems: LookupItem[] = []; |
|
|
protected defaultLookupItems: LookupItem[] = []; |
|
|
protected hasPermissionToCreateOwnTag: boolean | undefined; |
|
|
protected hasPermissionToCreateOwnTag: boolean; |
|
|
protected isLoading = false; |
|
|
protected isLoading = false; |
|
|
protected readonly isToday = isToday; |
|
|
protected readonly isToday = isToday; |
|
|
protected mode: 'create' | 'update'; |
|
|
protected mode: 'create' | 'update'; |
|
|
@ -120,9 +120,10 @@ export class GfCreateOrUpdateActivityDialogComponent { |
|
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
this.currencyOfAssetProfile = this.data.activity?.assetProfile?.currency; |
|
|
this.currencyOfAssetProfile = this.data.activity?.assetProfile?.currency; |
|
|
this.hasPermissionToCreateOwnTag = |
|
|
this.hasPermissionToCreateOwnTag = hasPermission( |
|
|
this.data.user?.settings?.isExperimentalFeatures && |
|
|
this.data.user?.permissions, |
|
|
hasPermission(this.data.user?.permissions, permissions.createOwnTag); |
|
|
permissions.createOwnTag |
|
|
|
|
|
); |
|
|
this.locale = this.data.user.settings.locale ?? DEFAULT_LOCALE; |
|
|
this.locale = this.data.user.settings.locale ?? DEFAULT_LOCALE; |
|
|
this.mode = this.data.activity?.id ? 'update' : 'create'; |
|
|
this.mode = this.data.activity?.id ? 'update' : 'create'; |
|
|
|
|
|
|
|
|
|