Skip to content

Commit

Permalink
🛠️: remove unused props in WorkflowActionsExtend
Browse files Browse the repository at this point in the history
  • Loading branch information
itisAliRH committed Jun 28, 2024
1 parent afa4ca0 commit c6bd4be
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions client/src/components/Workflow/WorkflowActionsExtend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ library.add(faCopy, faDownload, faLink, faShareAlt, faTrashRestore);
interface Props {
workflow: any;
menu?: boolean;
published?: boolean;
buttonSize?: "sm" | "md" | "lg";
}
const props = withDefaults(defineProps<Props>(), {
buttonSize: "sm",
published: false,
});
const emit = defineEmits<{
Expand Down Expand Up @@ -87,7 +85,7 @@ function onCopyPublicLink() {
v-if="workflow.published && !workflow.deleted"
id="workflow-copy-public-button"
v-b-tooltip.hover.noninteractive
:size="buttonSize"
size="sm"
title="Copy link to workflow"
variant="outline-primary"
@click="onCopyPublicLink">
Expand All @@ -99,7 +97,7 @@ function onCopyPublicLink() {
v-if="!isAnonymous && !shared && !workflow.deleted"
id="workflow-copy-button"
v-b-tooltip.hover.noninteractive
:size="buttonSize"
size="sm"
title="Copy"
variant="outline-primary"
@click="onCopy">
Expand All @@ -111,7 +109,7 @@ function onCopyPublicLink() {
v-if="!workflow.deleted"
id="workflow-download-button"
v-b-tooltip.hover.noninteractive
:size="buttonSize"
size="sm"
title="Download workflow in .ga format"
variant="outline-primary"
:href="downloadUrl">
Expand All @@ -123,7 +121,7 @@ function onCopyPublicLink() {
v-if="!isAnonymous && !shared && !workflow.deleted"
id="workflow-share-button"
v-b-tooltip.hover.noninteractive
:size="buttonSize"
size="sm"
title="Share"
variant="outline-primary"
:to="`/workflows/sharing?id=${workflow.id}`">
Expand All @@ -135,7 +133,7 @@ function onCopyPublicLink() {
v-if="workflow.deleted"
id="restore-button"
v-b-tooltip.hover.noninteractive
:size="buttonSize"
size="sm"
title="Restore"
variant="outline-primary"
@click="onRestore">
Expand Down

0 comments on commit c6bd4be

Please sign in to comment.