diff options
author | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-11 18:19:52 +0300 |
---|---|---|
committer | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-29 20:54:07 +0200 |
commit | 4f109beee7279d30e9bd3d9f1d3c5745e5f27fc5 (patch) | |
tree | e6fce7ac0212b94ed2d8395a8451c2ebe1bba5f8 | |
parent | a5291c68a2fbc4ed2b95e94ed17fd3dd95460e5c (diff) | |
download | nextcloud-server-4f109beee7279d30e9bd3d9f1d3c5745e5f27fc5.tar.gz nextcloud-server-4f109beee7279d30e9bd3d9f1d3c5745e5f27fc5.zip |
WIP: use global mutation, since app_api_apps is namespaced
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
-rw-r--r-- | apps/settings/src/store/app_api_apps.js | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/apps/settings/src/store/app_api_apps.js b/apps/settings/src/store/app_api_apps.js index 8d246a15e81..11ecd30a0d6 100644 --- a/apps/settings/src/store/app_api_apps.js +++ b/apps/settings/src/store/app_api_apps.js @@ -128,14 +128,6 @@ const mutations = { Vue.set(state.loading, id, false) // eslint-disable-line }, - setDaemonAccessible(state, value) { - state.daemonAccessible = value - }, - - setDefaultDaemon(state, value) { - Vue.set(state, 'defaultDaemon', value) // eslint-disable-line - }, - setAppStatus(state, { appId, status }) { const app = state.apps.find(app => app.id === appId) if (status.type === 'install' && status.deploy === 100 && status.action === '') { @@ -247,7 +239,7 @@ const actions = { }) context.commit('APPS_API_FAILURE', { appId, error }) }) - }).catch((error) => context.commit('API_FAILURE', { appId, error })) + }).catch((error) => context.commit('API_FAILURE', { appId, error }, { root: true })) }, forceEnableApp(context, { appId }) { @@ -267,7 +259,7 @@ const actions = { }) context.commit('APPS_API_FAILURE', { appId, error }) }) - }).catch((error) => context.commit('API_FAILURE', { appId, error })) + }).catch((error) => context.commit('API_FAILURE', { appId, error }, { root: true })) }, disableApp(context, { appId }) { @@ -284,7 +276,7 @@ const actions = { context.commit('stopLoading', appId) context.commit('APPS_API_FAILURE', { appId, error }) }) - }).catch((error) => context.commit('API_FAILURE', { appId, error })) + }).catch((error) => context.commit('API_FAILURE', { appId, error }, { root: true })) }, uninstallApp(context, { appId, removeData }) { @@ -300,7 +292,7 @@ const actions = { context.commit('stopLoading', appId) context.commit('APPS_API_FAILURE', { appId, error }) }) - }).catch((error) => context.commit('API_FAILURE', { appId, error })) + }).catch((error) => context.commit('API_FAILURE', { appId, error }, { root: true })) }, updateApp(context, { appId }) { @@ -320,7 +312,7 @@ const actions = { context.commit('stopLoading', 'install') context.commit('APPS_API_FAILURE', { appId, error }) }) - }).catch((error) => context.commit('API_FAILURE', { appId, error })) + }).catch((error) => context.commit('API_FAILURE', { appId, error }, { root: true })) }, getAllApps(context) { @@ -331,7 +323,7 @@ const actions = { context.commit('stopLoading', 'list') return true }) - .catch((error) => context.commit('API_FAILURE', error)) + .catch((error) => context.commit('API_FAILURE', error, { root: true })) }, async getCategories(context, { shouldRefetchCategories = false } = {}) { @@ -349,7 +341,7 @@ const actions = { context.commit('stopLoading', 'categories') return false } catch (error) { - context.commit('API_FAILURE', error) + context.commit('API_FAILURE', error, { root: true }) } } return context.state.gettingCategoriesPromise @@ -374,7 +366,7 @@ const actions = { } }) .catch((error) => { - context.commit('API_FAILURE', error) + context.commit('API_FAILURE', error, { root: true }) context.commit('unregisterApp', { appId }) context.dispatch('updateAppsStatus') }) |