Skip to content

Commit

Permalink
Move workflow preview to primary link for workflows card list -- easi…
Browse files Browse the repository at this point in the history
…er to find and feels more natural
  • Loading branch information
dannon committed Jun 28, 2024
1 parent 414bc64 commit 24399bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
12 changes: 0 additions & 12 deletions client/src/components/Workflow/WorkflowActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits<{
(e: "refreshList", a?: boolean): void;
(e: "toggleShowPreview", a?: boolean): void;
}>();
const userStore = useUserStore();
Expand Down Expand Up @@ -147,17 +146,6 @@ const actions: ComputedRef<(AAction | BAction)[]> = computed(() => {
variant: "link",
action: () => onToggleBookmark(false),
},
{
condition: true,
class: "workflow-view-button",
component: "button",
title: "View workflow",
tooltip: "View workflow",
icon: faEye,
size: props.buttonSize,
variant: "link",
onClick: () => emit("toggleShowPreview", true),
},
];
});
Expand Down
9 changes: 7 additions & 2 deletions client/src/components/Workflow/WorkflowCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { library } from "@fortawesome/fontawesome-svg-core";
import { faEdit, faEye, faPen, faUpload } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { BButton } from "bootstrap-vue";
import { BButton, BLink } from "bootstrap-vue";
import { storeToRefs } from "pinia";
import { computed, ref } from "vue";
Expand Down Expand Up @@ -141,7 +141,12 @@ async function onTagClick(tag: string) {
</div>

<span class="workflow-name font-weight-bold">
{{ workflow.name }}
<BLink
v-b-tooltip.hover.noninteractive
title="Preview Workflow"
@click.stop.prevent="toggleShowPreview(true)">
{{ workflow.name }}
</BLink>
<BButton
v-if="!shared && !workflow.deleted"
v-b-tooltip.hover.noninteractive
Expand Down

0 comments on commit 24399bb

Please sign in to comment.