Skip to content

Commit

Permalink
only render "back to list" button if not from_panel
Browse files Browse the repository at this point in the history
i.e.: Do not render the `<- Invocations List` button if you open the invocation state overview from the invocations panel
  • Loading branch information
ahmedhamidawan committed May 14, 2024
1 parent 984341a commit 03648a3
Showing 1 changed file with 3 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
<script setup lang="ts">
import { library } from "@fortawesome/fontawesome-svg-core";
import {
faArrowLeft,
faClock,
faEdit,
faEye,
faHdd,
faPlay,
faSitemap,
faTimes,
} from "@fortawesome/free-solid-svg-icons";
import { faArrowLeft, faClock, faEdit, faEye, faHdd, faPlay, faSitemap } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { BAlert, BButton, BButtonGroup, BTab, BTabs } from "bootstrap-vue";
import { computed, onMounted, onUnmounted, ref, watch } from "vue";
Expand All @@ -35,7 +26,7 @@ import WorkflowInvocationInputOutputTabs from "./WorkflowInvocationInputOutputTa
import WorkflowInvocationOverview from "./WorkflowInvocationOverview.vue";
import LoadingSpan from "@/components/LoadingSpan.vue";
library.add(faArrowLeft, faClock, faEdit, faEye, faHdd, faPlay, faSitemap, faTimes);
library.add(faArrowLeft, faClock, faEdit, faEye, faHdd, faPlay, faSitemap);
interface Props {
invocationId: string;
Expand Down Expand Up @@ -172,9 +163,8 @@ function getWorkflowName() {
Invoked Workflow: "{{ getWorkflowName() }}"
</Heading>

<div>
<div v-if="!props.fromPanel">
<BButton
v-if="!props.fromPanel"
v-b-tooltip.hover.noninteractive
:title="localize('Return to Invocations List')"
class="text-nowrap"
Expand All @@ -184,16 +174,6 @@ function getWorkflowName() {
<FontAwesomeIcon :icon="faArrowLeft" class="mr-1" />
<span v-localize>Invocations List</span>
</BButton>
<BButton
v-else
v-b-tooltip.hover.noninteractive
:title="localize('Close invocation')"
size="sm"
variant="outline-primary"
to="/">
<FontAwesomeIcon :icon="faTimes" class="mr-1" />
<span v-localize>Close</span>
</BButton>
</div>
</div>
<div v-if="props.isFullPage" class="py-2 pl-3 d-flex justify-content-between align-items-center">
Expand Down

0 comments on commit 03648a3

Please sign in to comment.