|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import { UserService } from '@ghostfolio/client/services/user/user.service'; |
|
|
|
import { ASSET_CLASS_MAPPING } from '@ghostfolio/common/config'; |
|
|
|
import { locale as defaultLocale } from '@ghostfolio/common/config'; |
|
|
|
import { CreateOrderDto, UpdateOrderDto } from '@ghostfolio/common/dtos'; |
|
|
|
import { getDateFormatString } from '@ghostfolio/common/helper'; |
|
|
|
import { |
|
|
|
@ -121,7 +122,7 @@ export class GfCreateOrUpdateActivityDialogComponent { |
|
|
|
this.hasPermissionToCreateOwnTag = |
|
|
|
this.data.user?.settings?.isExperimentalFeatures && |
|
|
|
hasPermission(this.data.user?.permissions, permissions.createOwnTag); |
|
|
|
this.locale = this.data.user?.settings?.locale ?? this.locale; |
|
|
|
this.locale = this.data.user.settings.locale ?? defaultLocale; |
|
|
|
this.mode = this.data.activity?.id ? 'update' : 'create'; |
|
|
|
|
|
|
|
this.dateAdapter.setLocale(this.locale); |
|
|
|
|