add create board button in board switcher

This commit is contained in:
Gamebrary 2020-10-14 14:53:23 -07:00
parent 1de7f2c403
commit 7ece414c17

View file

@ -32,6 +32,11 @@
> >
{{ name }} {{ name }}
</b-dropdown-item> </b-dropdown-item>
<b-dropdown-divider />
<b-dropdown-item-button>
<create-board />
</b-dropdown-item-button>
</b-dropdown> </b-dropdown>
</template> </template>
@ -81,14 +86,14 @@
<icon name="info" /> <icon name="info" />
</b-button> </b-button>
<!-- <b-button <b-button
variant="link" variant="link"
:title="$t('navMenu.about')" :title="$t('navMenu.about')"
v-b-tooltip.hover.right v-b-tooltip.hover.right
@click="toggleTheme" @click="toggleTheme"
> >
<icon :name="nightMode ? 'moon' : 'sun'" /> <icon :name="nightMode ? 'moon' : 'sun'" />
</b-button> --> </b-button>
<router-link <router-link
:title="$t('settings.account')" :title="$t('settings.account')"
@ -112,8 +117,13 @@
<script> <script>
import { mapState, mapGetters } from 'vuex'; import { mapState, mapGetters } from 'vuex';
import CreateBoard from '@/components/Board/CreateBoard';
export default { export default {
components: {
CreateBoard,
},
computed: { computed: {
...mapState(['board', 'user', 'notification', 'settings']), ...mapState(['board', 'user', 'notification', 'settings']),
...mapGetters(['sortedBoards', 'nightMode']), ...mapGetters(['sortedBoards', 'nightMode']),