Skip to content

Commit

Permalink
feat(#350): fix minor typos in xls list pages, refactor logout
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Mar 17, 2023
1 parent b674366 commit ea415e5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/src/pages/explorer/curate/validlist/UpdateXlsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div style="max-width: 99%;">
<div class="md-layout md-alignment-top-center">
<div class="md-layout-item md-size-50 md-medium-size-70 md-small-size-85 md-xsmall-size-95">
<CurateNavBar active="" :navRoutes="[]"/>
<CurateNavBar active=""/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/explorer/curate/validlist/XlsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div style="max-width: 99%;">
<div class="md-layout md-alignment-top-center">
<div class="md-layout-item md-size-50 md-medium-size-70 md-small-size-85 md-xsmall-size-95">
<CurateNavBar active="" :navRoutes="[]"/>
<CurateNavBar active=""/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/explorer/curate/validlist/XlsListAll.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div style="max-width: 99%;">
<div class="md-layout md-alignment-top-center">
<div class="md-layout-item md-size-50 md-medium-size-70 md-small-size-85 md-xsmall-size-95">
<CurateNavBar active="" :navRoutes="[]"/>
<CurateNavBar active=""/>
</div>
</div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions app/src/store/modules/auth/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,19 @@ export default {
localStorage.removeItem('displayName')
localStorage.removeItem('tokenExpiration')

const meta = router.currentRoute?.meta
if (meta?.requiresAuth) {
router.push('/nm')
}

clearTimeout(timer)

context.commit('setUser', {
token: null,
userId: null,
displayName: null
})

const meta = router.currentRoute?.meta
if (meta?.requiresAuth) {
router.push('/nm')
context.dispatch('notifyUser')
}
},

autoLogout (context) {
Expand Down

0 comments on commit ea415e5

Please sign in to comment.