diff options
author | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-11 18:33:23 +0300 |
---|---|---|
committer | Andrey Borysenko <andrey18106x@gmail.com> | 2024-10-29 20:54:07 +0200 |
commit | 2f25546fda4eca3bcabe5fc9f32fffde54977a86 (patch) | |
tree | 641f67a055cde72703048ba2af16ae5509926718 /apps | |
parent | 70a8d26f5d499ec97c1f3606e4ec852e49bb933b (diff) | |
download | nextcloud-server-2f25546fda4eca3bcabe5fc9f32fffde54977a86.tar.gz nextcloud-server-2f25546fda4eca3bcabe5fc9f32fffde54977a86.zip |
WIP: minor fixes
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Diffstat (limited to 'apps')
-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) |