summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-30 16:10:37 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commit67753321b3c1684aecf5696c71f3bb2d46e77dc4 (patch)
treec9a29b65e4e9eed92cc0f7720853d897e2c4f70d /settings
parent1a034ce6993373b35ac05fb7a7463fc5b55b69ae (diff)
downloadnextcloud-server-67753321b3c1684aecf5696c71f3bb2d46e77dc4.tar.gz
nextcloud-server-67753321b3c1684aecf5696c71f3bb2d46e77dc4.zip
Block other actions during update
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings')
-rw-r--r--settings/src/store/apps.js3
1 files changed, 3 insertions, 0 deletions
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 }));