From b413bfa189e57ab8cb96f47b7f76b402983cc212 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 25 Jan 2023 13:24:20 +0100 Subject: [PATCH] Redirect anonymous users on histories/list --- client/src/components/Grid/GridHistory.vue | 10 +--------- client/src/components/Grid/history-list.js | 9 ++------- client/src/entry/analysis/router.js | 11 ++++++----- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/client/src/components/Grid/GridHistory.vue b/client/src/components/Grid/GridHistory.vue index 8f91a6af438..c00cf5641ae 100644 --- a/client/src/components/Grid/GridHistory.vue +++ b/client/src/components/Grid/GridHistory.vue @@ -5,16 +5,8 @@ diff --git a/client/src/components/Grid/history-list.js b/client/src/components/Grid/history-list.js index e8a768413af..42b8c21ff2c 100644 --- a/client/src/components/Grid/history-list.js +++ b/client/src/components/Grid/history-list.js @@ -62,15 +62,10 @@ var View = Backbone.View.extend({ initialize: function (options) { const Galaxy = getGalaxyInstance(); LoadingIndicator.markViewAsLoading(this); - - if (options.action_id == "list_published") { - this.active_tab = "shared"; - } else if (options.action_id == "list") { - this.active_tab = "user"; - } + this.active_tab = "user"; this.model = new Backbone.Model(); Utils.get({ - url: `${getAppRoot()}history/${options.action_id}?${$.param(Galaxy.params)}`, + url: `${getAppRoot()}history/list?${$.param(Galaxy.params)}`, success: (response) => { this.model.set(response); this.render(); diff --git a/client/src/entry/analysis/router.js b/client/src/entry/analysis/router.js index 56e2bdac7e9..558e962322f 100644 --- a/client/src/entry/analysis/router.js +++ b/client/src/entry/analysis/router.js @@ -235,6 +235,12 @@ export function getRouter(Galaxy) { component: HistoryPublishedList, props: true, }, + { + path: "histories/list", + component: GridHistory, + props: true, + redirect: redirectAnon(), + }, { path: "histories/:historyId/export", get component() { @@ -242,11 +248,6 @@ export function getRouter(Galaxy) { }, props: true, }, - { - path: "histories/:actionId", - component: GridHistory, - props: true, - }, { path: "interactivetool_entry_points/list", component: InteractiveTools,