forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow Invocation view improvements
This first commit tackles point A in the roadmap: List of invocations is now not visible continously, it goes away after you settle on one invocation and `mouseleave` the panel area. Roadmap: https://hackmd.io/@nekrut/HkinoEh8A
- Loading branch information
1 parent
9d975b5
commit e752647
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
<script setup lang="ts"> | ||
import { BAlert } from "bootstrap-vue"; | ||
import { storeToRefs } from "pinia"; | ||
import { ref } from "vue"; | ||
import { useUserStore } from "@/stores/userStore"; | ||
import InvocationScrollList from "../Workflow/Invocation/InvocationScrollList.vue"; | ||
import ActivityPanel from "./ActivityPanel.vue"; | ||
const { currentUser, toggledSideBar } = storeToRefs(useUserStore()); | ||
const shouldCollapse = ref(false); | ||
function collapseOnLeave() { | ||
if (shouldCollapse.value) { | ||
toggledSideBar.value = ""; | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<!-- eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events --> | ||
<ActivityPanel | ||
title="Workflow Invocations" | ||
go-to-all-title="Open Invocations List" | ||
href="/workflows/invocations" | ||
@goToAll="toggledSideBar = ''"> | ||
<InvocationScrollList v-if="currentUser && !currentUser?.isAnonymous" in-panel /> | ||
@goToAll="shouldCollapse = true" | ||
@mouseleave.native="collapseOnLeave"> | ||
<InvocationScrollList | ||
v-if="currentUser && !currentUser?.isAnonymous" | ||
in-panel | ||
@invocation-clicked="shouldCollapse = true" /> | ||
<BAlert v-else variant="info" class="mt-3" show>Please log in to view your Workflow Invocations.</BAlert> | ||
</ActivityPanel> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters