mirror of
https://github.com/romancm/gamebrary
synced 2024-12-24 01:53:07 +00:00
add create board button in board switcher
This commit is contained in:
parent
1de7f2c403
commit
7ece414c17
1 changed files with 12 additions and 2 deletions
|
@ -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']),
|
||||||
|
|
Loading…
Reference in a new issue