Skip to content

Commit

Permalink
Merge pull request #52 from agileseason/51-hide-notes-link-from-top-m…
Browse files Browse the repository at this point in the history
…enu-on-the-boards-view

Hide notes link from top menu on the boards view
  • Loading branch information
blackchestnut committed Oct 16, 2021
2 parents 4f530e8 + b8b7ae0 commit 522eb14
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/menu/top.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</div>
<div class='right'>
<router-link v-if='isShowSettings' class='icon settings' :to='boardSettingsUrl' />
<router-link v-if='isBoardLoaded' class='icon notes' :to='boardNotesUrl' />
<router-link v-if='isShowNotes' class='icon notes' :to='boardNotesUrl' />
</div>
</div>
</template>
Expand Down Expand Up @@ -83,6 +83,9 @@ export default {
boardNotesUrl() { return `/boards/${this.boardId}/notes`; },
isShowSettings() {
return this.boardId > 0 && this.isBoardLoaded && this.isBoardOwner;
},
isShowNotes() {
return this.boardId > 0 && this.isBoardLoaded;
}
},
async created() {
Expand Down

0 comments on commit 522eb14

Please sign in to comment.