fix(settings): Disable app again if it breaks the files app

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/44016/head
Ferdinand Thiessen 3 months ago
parent 9f1f123990
commit 8442a036e7
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400

@ -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…
Cancel
Save