Skip to content

Commit

Permalink
make tooltips non-interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Feb 23, 2024
1 parent 9e7f53d commit 69db98b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Common/AsyncButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function onClick() {

<template>
<BButton
v-b-tooltip.hover="!title"
v-b-tooltip.hover.noninteractive="!title"
:title="title"
:size="size"
:variant="variant"
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Workflow/WorkflowActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const menuActions: ComputedRef<BAction[]> = computed(() => {
<div v-for="action in actions" :key="action.class">
<AsyncButton
v-if="action.condition && action.component === 'async'"
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
:class="action.class"
class="inline-icon-button mr-1"
:variant="action.variant"
Expand All @@ -226,7 +226,7 @@ const menuActions: ComputedRef<BAction[]> = computed(() => {

<BButton
v-else-if="action.condition && action.component === 'button'"
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
:class="action.class"
class="inline-icon-button mr-1"
:variant="action.variant"
Expand All @@ -239,7 +239,7 @@ const menuActions: ComputedRef<BAction[]> = computed(() => {
</div>

<BDropdown
v-b-tooltip.top
v-b-tooltip.top.noninteractive
:data-workflow-actions-dropdown="workflow.id"
right
no-caret
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Workflow/WorkflowCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function onTagClick(tag: string) {
{{ workflow.name }}
<BButton
v-if="!shared && !workflow.deleted"
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
:data-workflow-rename="workflow.id"
class="inline-icon-button workflow-rename"
variant="link"
Expand Down Expand Up @@ -156,7 +156,7 @@ async function onTagClick(tag: string) {
<div class="workflow-edit-run-buttons">
<BButton
v-if="!shared"
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
:disabled="workflow.deleted"
size="sm"
class="workflow-edit-button"
Expand All @@ -173,7 +173,7 @@ async function onTagClick(tag: string) {

<AsyncButton
v-else
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
size="sm"
title="Import this workflow to edit"
:icon="faUpload"
Expand Down
10 changes: 5 additions & 5 deletions client/src/components/Workflow/WorkflowIndicators.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function onViewUserPublished() {
<div>
<BButton
v-if="workflow.published"
v-b-tooltip
v-b-tooltip.noninteractive
size="sm"
class="workflow-published-icon inline-icon-button"
to="/workflows/list_published"
Expand All @@ -90,7 +90,7 @@ function onViewUserPublished() {

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

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

<BBadge
v-if="shared && !publishedView"
v-b-tooltip
v-b-tooltip.noninteractive
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 @@ -125,7 +125,7 @@ function onViewUserPublished() {

<BBadge
v-if="publishedView"
v-b-tooltip
v-b-tooltip.noninteractive
class="outline-badge cursor-pointer mx-1"
:title="publishedTitle"
@click="onViewUserPublished">
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Workflow/WorkflowInvocationsCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function onInvocations() {
<div class="workflow-invocations-count d-flex align-items-center flex-gapx-1">
<BBadge
v-if="count != undefined"
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
pill
:title="localize('View workflow invocations')"
class="outline-badge cursor-pointer list-view"
Expand All @@ -57,7 +57,7 @@ function onInvocations() {

<BButton
v-else
v-b-tooltip.hover
v-b-tooltip.hover.noninteractive
:title="localize('View workflow invocations')"
class="inline-icon-button"
variant="link"
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Workflow/WorkflowRunButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function ExecuteWorkflow() {
<template>
<BButton
id="workflow-run-button"
v-b-tooltip.hover.top
v-b-tooltip.hover.top.noninteractive
title="Run workflow"
:data-workflow-run="id"
variant="primary"
Expand Down

0 comments on commit 69db98b

Please sign in to comment.