Browse Source
Task/refactor href in user account settings component (#6085)
* Refactoring
pull/6089/head
Thomas Kaul
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
2 deletions
-
apps/client/src/app/components/user-account-settings/user-account-settings.component.ts
|
|
|
@ -11,6 +11,7 @@ import { ConfirmationDialogType } from '@ghostfolio/common/enums'; |
|
|
|
import { downloadAsFile } from '@ghostfolio/common/helper'; |
|
|
|
import { User } from '@ghostfolio/common/interfaces'; |
|
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions'; |
|
|
|
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
|
|
|
import { NotificationService } from '@ghostfolio/ui/notifications'; |
|
|
|
|
|
|
|
import { |
|
|
|
@ -169,9 +170,9 @@ export class GfUserAccountSettingsComponent implements OnDestroy, OnInit { |
|
|
|
|
|
|
|
if (aKey === 'language') { |
|
|
|
if (aValue) { |
|
|
|
window.location.href = `../${aValue}/account`; |
|
|
|
window.location.href = `../${aValue}/${internalRoutes.account.path}`; |
|
|
|
} else { |
|
|
|
window.location.href = `../`; |
|
|
|
window.location.href = '../'; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|