diff --git a/src/Frontend/src/components/ActionButton.vue b/src/Frontend/src/components/ActionButton.vue index 1b94fe11a..9d16fee1a 100644 --- a/src/Frontend/src/components/ActionButton.vue +++ b/src/Frontend/src/components/ActionButton.vue @@ -12,6 +12,9 @@ interface Props { iconPosition?: "left" | "right"; disabled?: boolean; loading?: boolean; + /** Loading normally disables the button; opt out for buttons that stay + * actionable while work runs (e.g. a cancel button). */ + disableOnLoading?: boolean; tooltip?: string; ariaLabel?: string; type?: "button" | "submit" | "reset"; @@ -23,6 +26,7 @@ const props = withDefaults(defineProps(), { iconPosition: "left", disabled: false, loading: false, + disableOnLoading: true, type: "button", }); @@ -44,13 +48,15 @@ const sizeClasses = {