Skip to content

Commit

Permalink
use danger variant button on delete Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH committed Nov 9, 2023
1 parent 1ec3ac0 commit d380f9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/components/Workflow/WorkflowActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ async function onToggleBookmark(checked: boolean) {
}
async function onDelete() {
const confirmed = await confirm("Are you sure you want to delete this workflow?", "Delete workflow");
const confirmed = await confirm("Are you sure you want to delete this workflow?", {
title: "Delete workflow",
okTitle: "Delete",
okVariant: "danger",
});
if (confirmed) {
await deleteWorkflow(props.workflow.id);
emit("refreshList", true);
Expand Down

0 comments on commit d380f9b

Please sign in to comment.