]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(settings): Disable app again if it breaks the files app
authorFerdinand Thiessen <opensource@fthiessen.de>
Tue, 5 Mar 2024 23:28:08 +0000 (00:28 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Wed, 6 Mar 2024 10:30:21 +0000 (11:30 +0100)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/settings/src/store/apps.js

index 86ac15f69a2474d650e908e2f51c64b3236165c7..af77b9fc08b97f7e4ce182190f68fad83d9296ce 100644 (file)
@@ -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 })
                                                        }
                                                })
                                })