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.
Merge pull request galaxyproject#17799 from itisAliRH/datasets-refactors
Datasets refactors
- Loading branch information
Showing
7 changed files
with
320 additions
and
269 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
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,21 +1,24 @@ | ||
<script setup lang="ts"> | ||
import { computed } from "vue"; | ||
import { HDASummary } from "@/api/datasets"; | ||
import { useHistoryStore } from "@/stores/historyStore"; | ||
interface Props { | ||
item: HDASummary; | ||
} | ||
const props = defineProps<Props>(); | ||
const historyStore = useHistoryStore(); | ||
const historyName = computed(() => { | ||
return historyStore.getHistoryNameById(props.item.history_id); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div> | ||
{{ historyName }} | ||
</div> | ||
</template> | ||
<script> | ||
import { mapState } from "pinia"; | ||
import { useHistoryStore } from "stores/historyStore"; | ||
export default { | ||
props: { | ||
item: Object, | ||
}, | ||
computed: { | ||
...mapState(useHistoryStore, ["getHistoryNameById"]), | ||
historyName() { | ||
return this.getHistoryNameById(this.item.history_id); | ||
}, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.