Open HistoryStorageOverview in center panel from HistoryPanel

Previously, if we clicked the History storage button for the current
history in the `HistoryPanel`, it took over the whole screen because
the `StorageDashboardRoutes` are not children of the `Analysis`
route.

Changed it so the `HistoryStorageOverview` route opens in the
center panel as an `Analysis` route (only from the `HistoryPanel`,
otherwise, it is still opened as one of the `StorageDashboardRoutes`)

Fixes https://github.com/galaxyproject/galaxy/issues/17026
This commit is contained in:
Ahmed Awan
2023-11-16 20:06:56 -06:00
parent 19b0ffde46
commit e5ce95d6a2
2 changed files with 8 additions and 1 deletions
@@ -57,7 +57,7 @@ onMounted(() => {
});
function onDashboard() {
router.push({ name: "HistoryOverview", params: { historyId: props.history.id } });
router.push({ name: "HistoryOverviewInAnalysis", params: { historyId: props.history.id } });
}
function setFilter(filter: string) {
+7
View File
@@ -68,6 +68,7 @@ import HistoryArchive from "@/components/History/Archiving/HistoryArchive.vue";
import HistoryArchiveWizard from "@/components/History/Archiving/HistoryArchiveWizard.vue";
import NotificationsList from "@/components/Notifications/NotificationsList.vue";
import Sharing from "@/components/Sharing/SharingPage.vue";
import HistoryStorageOverview from "@/components/User/DiskUsage/Visualizations/HistoryStorageOverview.vue";
import WorkflowPublished from "@/components/Workflow/Published/WorkflowPublished.vue";
Vue.use(VueRouter);
@@ -366,6 +367,12 @@ export function getRouter(Galaxy) {
published: route.params.actionId == "list_published" ? true : false,
}),
},
{
path: "storage/history/:historyId",
name: "HistoryOverviewInAnalysis",
component: HistoryStorageOverview,
props: true,
},
{
path: "tours",
component: TourList,