Skip to content

Commit

Permalink
Merge pull request galaxyproject#17649 from guerler/move_archived_his…
Browse files Browse the repository at this point in the history
…tories

[24.0] Moves archived histories from Masthead to Histories Grid
  • Loading branch information
martenson authored Mar 14, 2024
2 parents cc7e36e + 4566830 commit 31c0245
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
13 changes: 11 additions & 2 deletions client/src/components/Grid/GridHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import { useUserStore } from "@/stores/userStore";
import Heading from "@/components/Common/Heading.vue";
import LoginRequired from "@/components/Common/LoginRequired.vue";
import GridList from "@/components/Grid/GridList.vue";
import HistoryArchive from "@/components/History/Archiving/HistoryArchive.vue";
const userStore = useUserStore();
library.add(faPlus);
interface Props {
activeList?: "my" | "shared" | "published";
activeList?: "archived" | "my" | "shared" | "published";
username?: string;
}
Expand Down Expand Up @@ -64,9 +65,17 @@ const props = withDefaults(defineProps<Props>(), {
<BNavItem id="histories-published-tab" :active="activeList === 'published'" to="/histories/list_published">
Public Histories
</BNavItem>
<BNavItem id="histories-published-tab" :active="activeList === 'archived'" to="/histories/archived">
Archived Histories
</BNavItem>
</BNav>
<GridList v-if="activeList === 'my'" :grid-config="historiesGridConfig" embedded />
<GridList v-else-if="activeList === 'shared'" :grid-config="historiesSharedGridConfig" embedded />
<GridList v-else :grid-config="historiesPublishedGridConfig" :username-search="props.username" embedded />
<GridList
v-else-if="activeList === 'published'"
:grid-config="historiesPublishedGridConfig"
:username-search="props.username"
embedded />
<HistoryArchive v-else />
</div>
</template>
3 changes: 1 addition & 2 deletions client/src/components/History/Archiving/HistoryArchive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,11 @@ async function onImportCopy(history: ArchivedHistorySummary) {
</script>
<template>
<section id="archived-histories" class="d-flex flex-column">
<h1>Archived Histories</h1>
<div>
<DelayedInput
:query="searchText"
class="m-1 mb-3"
placeholder="Search by name"
placeholder="search by name"
@change="updateSearchQuery" />
<BAlert v-if="isLoading" variant="info" show>
<LoadingSpan v-if="isLoading" message="Loading archived histories" />
Expand Down
4 changes: 0 additions & 4 deletions client/src/entry/analysis/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ export function fetchMenu(options = {}) {
url: "/interactivetool_entry_points/list",
});
}
userTab.menu.push({
title: _l("Archived Histories"),
url: "/histories/archived",
});
if (Galaxy.config.enable_notification_system) {
userTab.menu.push({
title: _l("Notifications"),
Expand Down
6 changes: 4 additions & 2 deletions client/src/entry/analysis/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import { patchRouterPush } from "./router-push";

import AboutGalaxy from "@/components/AboutGalaxy.vue";
import GridVisualization from "@/components/Grid/GridVisualization.vue";
import HistoryArchive from "@/components/History/Archiving/HistoryArchive.vue";
import HistoryArchiveWizard from "@/components/History/Archiving/HistoryArchiveWizard.vue";
import HistoryDatasetPermissions from "@/components/History/HistoryDatasetPermissions.vue";
import NotificationsList from "@/components/Notifications/NotificationsList.vue";
Expand Down Expand Up @@ -288,7 +287,10 @@ export function getRouter(Galaxy) {
},
{
path: "histories/archived",
component: HistoryArchive,
component: GridHistory,
props: {
activeList: "archived",
},
},
{
path: "histories/list",
Expand Down

0 comments on commit 31c0245

Please sign in to comment.