mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-12-17 15:40:37 +00:00
table of contents in pages
This commit is contained in:
parent
f415fa8613
commit
a6e1803b23
12 changed files with 165 additions and 10 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<!-- <v-text-field flat solo-inverted hide-details prepend-inner-icon="mdi-magnify" label="Search" class="hidden-sm-and-down" /> -->
|
||||
<v-spacer />
|
||||
<v-btn @click.stop="setRightDrawer" icon v-if="hasRightDrawer">
|
||||
<v-icon>mdi-format-list-bulleted</v-icon>
|
||||
<v-icon>{{ rightDrawerIcon }}</v-icon>
|
||||
</v-btn>
|
||||
</v-app-bar>
|
||||
</template>
|
||||
|
|
@ -39,6 +39,17 @@ export default {
|
|||
},
|
||||
hasRightDrawer() {
|
||||
return this.$store.state.hasRightDrawer
|
||||
},
|
||||
inRightDrawer() {
|
||||
return this.$store.state.inRightDrawer
|
||||
},
|
||||
rightDrawerIcon() {
|
||||
if (this.inRightDrawer == 'pageToc') {
|
||||
return 'mdi-format-list-bulleted'
|
||||
} else if (this.inRightDrawer == 'spellFilters') {
|
||||
return 'mdi-filter-variant'
|
||||
}
|
||||
return 'mdi-menu'
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue