mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #44021 from nextcloud/backport/44016/stable28
[stable28] fix(settings): Disable app again if it breaks the files app
This commit is contained in:
commit
67c9ab49ea
3 changed files with 6 additions and 4 deletions
|
|
@ -198,7 +198,7 @@ const actions = {
|
|||
onClick: () => window.location.reload(),
|
||||
close: false,
|
||||
|
||||
}
|
||||
},
|
||||
)
|
||||
setTimeout(function() {
|
||||
location.reload()
|
||||
|
|
@ -207,10 +207,12 @@ const actions = {
|
|||
})
|
||||
.catch(() => {
|
||||
if (!Array.isArray(appId)) {
|
||||
showError(t('settings', 'Error: This app cannot be enabled because it makes the server unstable'))
|
||||
context.commit('setError', {
|
||||
appId: apps,
|
||||
error: t('settings', 'Error: This app cannot be enabled because it makes the server unstable'),
|
||||
})
|
||||
context.dispatch('disableApp', { appId })
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue