From 6c4a966c15c502777afd686842e2631517534921 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 6 Mar 2024 00:28:08 +0100 Subject: [PATCH] fix(settings): Disable app again if it breaks the files app Signed-off-by: Ferdinand Thiessen --- apps/settings/src/store/apps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/settings/src/store/apps.js b/apps/settings/src/store/apps.js index 86ac15f69a2..af77b9fc08b 100644 --- a/apps/settings/src/store/apps.js +++ b/apps/settings/src/store/apps.js @@ -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 }) } }) }) -- 2.39.5