Skip to content

Commit 4c27804

Browse files
committed
Block other actions during update
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent a8ab590 commit 4c27804

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

settings/src/store/apps.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,17 @@ const actions = {
258258
updateApp(context, { appId }) {
259259
return api.requireAdmin().then((response) => {
260260
context.commit('startLoading', appId);
261+
context.commit('startLoading', 'install');
261262
return api.get(OC.generateUrl(`settings/apps/update/${appId}`))
262263
.then((response) => {
264+
context.commit('stopLoading', 'install');
263265
context.commit('stopLoading', appId);
264266
context.commit('updateApp', appId);
265267
return true;
266268
})
267269
.catch((error) => {
268270
context.commit('stopLoading', appId);
271+
context.commit('stopLoading', 'install');
269272
context.commit('APPS_API_FAILURE', { appId, error })
270273
})
271274
}).catch((error) => context.commit('API_FAILURE', { appId, error }));

0 commit comments

Comments
 (0)