Skip to content

Commit

Permalink
Add link to documentation in navbar (#440)
Browse files Browse the repository at this point in the history
* Add link to documentation in navbar

* Add margin to button
  • Loading branch information
annehaley authored Apr 18, 2022
1 parent 9b5cbcf commit 975868f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions client/src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default defineComponent({
emailDialog: false,
keyboardShortcutDialog: false,
advanceTimeoutId: null,
documentationURL: 'https://openimaging.github.io/miqa/',
}),
computed: {
...mapState([
Expand All @@ -55,6 +56,9 @@ export default defineComponent({
await this.logout();
this.$router.go('/'); // trigger re-render into oauth flow
},
openDocumentation() {
window.open(this.documentationURL, '_blank');
},
},
});
</script>
Expand Down Expand Up @@ -120,6 +124,15 @@ export default defineComponent({
/>
</div>

<v-btn
elevation="0"
class="mx-2"
@click="openDocumentation"
>
Help
<v-icon>mdi-open-in-new</v-icon>
</v-btn>

<UserAvatar :target-user="user" />
<UserButton
@user="logoutUser()"
Expand Down

0 comments on commit 975868f

Please sign in to comment.