Răsfoiți Sursa

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

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Ferdinand Thiessen 3 luni în urmă
părinte
comite
8442a036e7

+ 3 - 1
apps/settings/src/store/apps.js

@@ -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 })
 							}
 						})
 				})

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
dist/settings-vue-settings-apps-users-management.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
dist/settings-vue-settings-apps-users-management.js.map


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff