summaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-03-31 17:09:52 +0200
committerGitHub <noreply@github.com>2023-03-31 17:09:52 +0200
commitb14ae5c59cc7a91e1c47bfb4b08c3f0f3600f346 (patch)
tree1096e9976ed7896203aa4f99c0e8c014903212ba /apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue
parenta1aa4491acac6217061a1cecc8cb9d807292376c (diff)
parent7bc8b543be88367ad55e76695c4261a410922802 (diff)
downloadnextcloud-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.vue7
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)
}
},