Skip to content

Commit

Permalink
change published button to filter toggle instead of link to published
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Mar 15, 2024
1 parent 7597efb commit d0bb13d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/src/components/Workflow/WorkflowIndicators.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@ function onViewUserPublished() {
<div>
<BButton
v-if="workflow.published && !publishedView"
v-b-tooltip.noninteractive
v-b-tooltip.noninteractive.hover
size="sm"
class="workflow-published-icon inline-icon-button"
to="/workflows/list_published"
title="Published workflow. Click to view all published workflows">
title="Published workflow. Click to filter published workflows"
@click="emit('update-filter', 'published', true)">
<FontAwesomeIcon :icon="faGlobe" fixed-width />
</BButton>
<FontAwesomeIcon v-else-if="workflow.published" :icon="faGlobe" fixed-width size="sm" />

<BButton
v-if="sourceType.includes('trs')"
v-b-tooltip.noninteractive
v-b-tooltip.noninteractive.hover
size="sm"
class="workflow-trs-icon inline-icon-button"
:title="sourceTitle">
Expand All @@ -106,7 +106,7 @@ function onViewUserPublished() {

<BButton
v-if="sourceType == 'url'"
v-b-tooltip.noninteractive
v-b-tooltip.noninteractive.hover
size="sm"
class="workflow-external-link inline-icon-button"
:title="sourceTitle">
Expand All @@ -122,7 +122,7 @@ function onViewUserPublished() {

<BBadge
v-if="shared && !publishedView"
v-b-tooltip.noninteractive
v-b-tooltip.noninteractive.hover
class="outline-badge cursor-pointer mx-1"
:title="`'${workflow.owner}' shared this workflow with you. Click to view all workflows shared with you by '${workflow.owner}'`"
@click="onViewMySharedByUser">
Expand All @@ -132,7 +132,7 @@ function onViewUserPublished() {

<BBadge
v-if="publishedView"
v-b-tooltip.noninteractive
v-b-tooltip.noninteractive.hover
class="outline-badge cursor-pointer mx-1"
:title="publishedTitle"
@click="onViewUserPublished">
Expand Down

0 comments on commit d0bb13d

Please sign in to comment.