Skip to content

Commit

Permalink
Refactor state display in invocations for expansion.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Mar 13, 2024
1 parent 90d55ab commit 020f87a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/Workflow/InvocationsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<UtcDate :date="data.value" mode="elapsed" />
</template>
<template v-slot:cell(state)="data">
<HelpText :uri="`galaxy.invocations.states.${data.value}`" :text="data.value" />
<InvocationsListState :invocation-state="data.value" :invocation-id="data.item.id" />
</template>
<template v-slot:cell(execute)="data">
<WorkflowRunButton
Expand All @@ -83,7 +83,6 @@
</template>

<script>
import HelpText from "components/Help/HelpText";
import { invocationsProvider } from "components/providers/InvocationsProvider";
import UtcDate from "components/UtcDate";
import WorkflowInvocationState from "components/WorkflowInvocationState/WorkflowInvocationState";
Expand All @@ -95,11 +94,12 @@ import { useWorkflowStore } from "@/stores/workflowStore";
import paginationMixin from "./paginationMixin";
import WorkflowRunButton from "./WorkflowRunButton.vue";
import InvocationsListState from "./InvocationsListState.vue";
import SwitchToHistoryLink from "@/components/History/SwitchToHistoryLink.vue";
export default {
components: {
HelpText,
InvocationsListState,
UtcDate,
WorkflowInvocationState,
WorkflowRunButton,
Expand Down
14 changes: 14 additions & 0 deletions client/src/components/Workflow/InvocationsListState.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script setup lang="ts">
import HelpText from "@/components/Help/HelpText.vue";
interface Props {
invocationId: string;
invocationState: string;
}
defineProps<Props>();
</script>

<template>
<HelpText :uri="`galaxy.invocations.states.${invocationState}`" :text="invocationState" />
</template>

0 comments on commit 020f87a

Please sign in to comment.