gamebrary/src/components/Board/EmptyBoard.vue
2020-10-21 12:02:32 -07:00

41 lines
751 B
Vue

<!-- TODO: translate -->
<template lang="html">
<b-jumbotron
class="empty-board w-100 text-center"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
:border-variant="nightMode ? 'light' : ''"
>
<p>This board is empty</p>
<b-button
:variant="nightMode ? 'light' : 'primary'"
@click="openAddListModal"
>
Add list
</b-button>
</b-jumbotron>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters(['nightMode']),
},
methods: {
openAddListModal() {
this.$bvModal.show('add-list');
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.empty-board {
max-width: 300px;
}
</style>