mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #44016 from nextcloud/fix/disable-app-again-if-failed
fix(settings): Disable app again if it breaks the files app
This commit is contained in:
commit
945d97ded1
3 changed files with 6 additions and 4 deletions
|
|
@ -210,7 +210,7 @@ const actions = {
|
|||
onClick: () => window.location.reload(),
|
||||
close: false,
|
||||
|
||||
}
|
||||
},
|
||||
)
|
||||
setTimeout(function() {
|
||||
location.reload()
|
||||
|
|
@ -219,10 +219,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