From 67753321b3c1684aecf5696c71f3bb2d46e77dc4 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 30 May 2018 16:10:37 +0200 Subject: Block other actions during update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/src/store/apps.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'settings') diff --git a/settings/src/store/apps.js b/settings/src/store/apps.js index 9fedabf0223..e6788faa029 100644 --- a/settings/src/store/apps.js +++ b/settings/src/store/apps.js @@ -258,14 +258,17 @@ const actions = { updateApp(context, { appId }) { return api.requireAdmin().then((response) => { context.commit('startLoading', appId); + context.commit('startLoading', 'install'); return api.get(OC.generateUrl(`settings/apps/update/${appId}`)) .then((response) => { + context.commit('stopLoading', 'install'); context.commit('stopLoading', appId); context.commit('updateApp', appId); return true; }) .catch((error) => { context.commit('stopLoading', appId); + context.commit('stopLoading', 'install'); context.commit('APPS_API_FAILURE', { appId, error }) }) }).catch((error) => context.commit('API_FAILURE', { appId, error })); -- cgit v1.2.3