diff options
author | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-11 18:33:23 +0300 |
---|---|---|
committer | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-30 20:36:55 +0200 |
commit | 9e694d12baa3ee70d650b3ef15d1bd4d00153bb2 (patch) | |
tree | 8ad5edfd887de479aba4cfd15598c407e01f54bd /apps/settings | |
parent | 3d4f0f9b550e0315ede88e36ca580696e72434ff (diff) | |
download | nextcloud-server-9e694d12baa3ee70d650b3ef15d1bd4d00153bb2.tar.gz nextcloud-server-9e694d12baa3ee70d650b3ef15d1bd4d00153bb2.zip |
WIP: minor fixes
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/src/store/app_api_apps.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings/src/store/app_api_apps.js b/apps/settings/src/store/app_api_apps.js index 11ecd30a0d6..4e505e6d8c8 100644 --- a/apps/settings/src/store/app_api_apps.js +++ b/apps/settings/src/store/app_api_apps.js @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import axios from '@nextcloud/axios' import api from './api.js' import Vue from 'vue' import { generateUrl } from '@nextcloud/router' @@ -195,7 +196,7 @@ const actions = { return api.requireAdmin().then((response) => { context.commit('startLoading', appId) context.commit('startLoading', 'install') - return api.post(generateUrl(`/apps/app_api/apps/enable/${appId}`)) + return axios.post(generateUrl(`/apps/app_api/apps/enable/${appId}`)) .then((response) => { context.commit('stopLoading', appId) context.commit('stopLoading', 'install') @@ -374,6 +375,10 @@ const actions = { updateAppsStatus(context) { clearInterval(context.getters.getStatusUpdater) // clear previous interval if exists + const initializingOrDeployingApps = context.getters.getInitializingOrDeployingApps + if (initializingOrDeployingApps.length === 0) { + return + } context.commit('setIntervalUpdater', setInterval(() => { const initializingOrDeployingApps = context.getters.getInitializingOrDeployingApps console.debug('initializingOrDeployingApps', initializingOrDeployingApps) |