From 93199324274f790318de8d3b04aac8a8597efc98 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 13 Dec 2023 13:19:58 +0200 Subject: [PATCH] storage: Only action failures should disable the apply button --- pkg/storaged/dialog.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/storaged/dialog.jsx b/pkg/storaged/dialog.jsx index 97b0d9f82ff4..e54e7e932c3c 100644 --- a/pkg/storaged/dialog.jsx +++ b/pkg/storaged/dialog.jsx @@ -415,7 +415,8 @@ export const dialog_open = (def) => { caption: def.Action.Title, style: "primary", danger: def.Action.Danger || def.Action.DangerButton, - disabled: running_promise != null || (def.Action.disable_on_error && errors), + disabled: running_promise != null || (def.Action.disable_on_error && + errors && errors.toString() != "[object Object]"), clicked: progress_callback => run_action(progress_callback, null), } ];