diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-03-31 17:09:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 17:09:52 +0200 |
commit | b14ae5c59cc7a91e1c47bfb4b08c3f0f3600f346 (patch) | |
tree | 1096e9976ed7896203aa4f99c0e8c014903212ba /apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue | |
parent | a1aa4491acac6217061a1cecc8cb9d807292376c (diff) | |
parent | 7bc8b543be88367ad55e76695c4261a410922802 (diff) | |
download | nextcloud-server-b14ae5c59cc7a91e1c47bfb4b08c3f0f3600f346.tar.gz nextcloud-server-b14ae5c59cc7a91e1c47bfb4b08c3f0f3600f346.zip |
Merge pull request #37497 from nextcloud/enh/profile-fields
Improve handling of profile fields
Diffstat (limited to 'apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue')
-rw-r--r-- | apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue b/apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue index adff44b2565..959e7153e17 100644 --- a/apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue +++ b/apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue @@ -51,12 +51,10 @@ </template> <script> -import { showError } from '@nextcloud/dialogs' - import { ACCOUNT_SETTING_PROPERTY_ENUM } from '../../../constants/AccountPropertyConstants.js' import { savePrimaryAccountProperty } from '../../../service/PersonalInfo/PersonalInfoService.js' import { validateLanguage } from '../../../utils/validate.js' -import logger from '../../../logger.js' +import { handleError } from '../../../utils/handlers.js' export default { name: 'Language', @@ -133,8 +131,7 @@ export default { // Ensure that local state reflects server state this.initialLanguage = language } else { - showError(errorMessage) - logger.error(errorMessage, error) + handleError(error, errorMessage) } }, |