diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-09-16 14:57:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-16 14:57:59 +0200 |
commit | c14ad845bd13cdf0973fdc990f19bbc12573e9ab (patch) | |
tree | ac4c055cf593f4f4edabe90559c7d732d9c85d76 /apps/settings | |
parent | 25888a3d42f67e9320781095ce246f090af34059 (diff) | |
parent | 8a15c629e25fbad5148c64d4b1b3c9f0f8174a9f (diff) | |
download | nextcloud-server-c14ad845bd13cdf0973fdc990f19bbc12573e9ab.tar.gz nextcloud-server-c14ad845bd13cdf0973fdc990f19bbc12573e9ab.zip |
Merge pull request #33819 from nextcloud/fix/user-exists-l10n
Fix translation of user exists error server-side
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/src/store/users.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index c220e21e49f..8c9e65af29c 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -30,7 +30,6 @@ import api from './api' import axios from '@nextcloud/axios' import { generateOcsUrl } from '@nextcloud/router' import logger from '../logger' -import { showError } from '@nextcloud/dialogs' const orderGroups = function(groups, orderBy) { /* const SORT_USERCOUNT = 1; @@ -553,13 +552,6 @@ const actions = { .then((response) => dispatch('addUserData', userid || response.data.ocs.data.id)) .catch((error) => { throw error }) }).catch((error) => { - const statusCode = error?.response?.data?.ocs?.meta?.statuscode - - if (statusCode === 102) { - showError(t('settings', 'User already exists.')) - throw error - } - commit('API_FAILURE', { userid, error }) throw error }) |