Skip to content

Commit

Permalink
Merge pull request #17719 from davelopez/24.0_fix_archived_history_ta…
Browse files Browse the repository at this point in the history
…b_anonymous_access

[24.0] Fix archived histories tab anonymous access
  • Loading branch information
mvdbeek authored Mar 14, 2024
2 parents dc7bacd + c8777e4 commit 6ea11c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/components/Grid/GridHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface Props {
const props = withDefaults(defineProps<Props>(), {
activeList: "my",
username: undefined,
});
</script>

Expand Down Expand Up @@ -65,8 +66,16 @@ 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">
<BNavItem
id="histories-archived-tab"
:active="activeList === 'archived'"
:disabled="userStore.isAnonymous"
to="/histories/archived">
Archived Histories
<LoginRequired
v-if="userStore.isAnonymous"
target="histories-archived-tab"
title="Manage your Histories" />
</BNavItem>
</BNav>
<GridList v-if="activeList === 'my'" :grid-config="historiesGridConfig" embedded />
Expand Down
1 change: 1 addition & 0 deletions client/src/entry/analysis/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export function getRouter(Galaxy) {
props: {
activeList: "archived",
},
redirect: redirectAnon(),
},
{
path: "histories/list",
Expand Down

0 comments on commit 6ea11c0

Please sign in to comment.