summaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-03-30 17:11:41 -0700
committerChristopher Ng <chrng8@gmail.com>2023-03-30 17:11:41 -0700
commit7bc8b543be88367ad55e76695c4261a410922802 (patch)
tree8b0cb385c4401b41cb99bc701e17ca1bb07d5d02 /apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
parent636c2415cc8b119c89af5b59d2a9457f87d7cf0d (diff)
downloadnextcloud-server-7bc8b543be88367ad55e76695c4261a410922802.tar.gz
nextcloud-server-7bc8b543be88367ad55e76695c4261a410922802.zip
Improve handling of profile fields
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue')
-rw-r--r--apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue b/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
index f00130ec0a4..91c4dfffc0c 100644
--- a/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
+++ b/apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue
@@ -36,7 +36,6 @@
</template>
<script>
-import { showError } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
@@ -44,7 +43,7 @@ import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import { saveProfileParameterVisibility } from '../../../service/ProfileService.js'
import { VISIBILITY_PROPERTY_ENUM } from '../../../constants/ProfileConstants.js'
-import logger from '../../../logger.js'
+import { handleError } from '../../../utils/handlers.js'
const { profileEnabled } = loadState('settings', 'personalInfoParameters', false)
@@ -136,8 +135,7 @@ export default {
// Ensure that local state reflects server state
this.initialVisibility = visibility
} else {
- showError(errorMessage)
- logger.error(errorMessage, error)
+ handleError(error, errorMessage)
}
},