Skip to content

Commit

Permalink
storage: Only action failures should disable the apply button
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Jan 2, 2024
1 parent 5060e25 commit 9319932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/storaged/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
];
Expand Down

0 comments on commit 9319932

Please sign in to comment.