diff options
Diffstat (limited to 'settings/src/store')
-rw-r--r-- | settings/src/store/apps.js | 3 |
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 })); |