gamebrary/src/components/Board/EmptyBoard.vue

40 lines
725 B
Vue
Raw Normal View History

2020-10-14 00:11:08 +00:00
<template lang="html">
2020-10-21 19:02:32 +00:00
<b-jumbotron
class="empty-board w-100 text-center"
2021-02-21 18:14:46 +00:00
:bg-variant="darkTheme ? 'dark' : ''"
:text-variant="darkTheme ? 'white' : ''"
:border-variant="darkTheme ? 'light' : ''"
2020-10-21 19:02:32 +00:00
>
2020-10-14 00:11:08 +00:00
<p>This board is empty</p>
2020-10-21 19:02:32 +00:00
<b-button
2021-02-21 18:14:46 +00:00
:variant="darkTheme ? 'light' : 'primary'"
2020-10-21 19:02:32 +00:00
@click="openAddListModal"
>
2020-10-14 00:11:08 +00:00
Add list
</b-button>
</b-jumbotron>
</template>
<script>
2020-10-21 19:02:32 +00:00
import { mapGetters } from 'vuex';
2020-10-14 00:11:08 +00:00
export default {
2020-10-21 19:02:32 +00:00
computed: {
2021-02-21 18:14:46 +00:00
...mapGetters(['darkTheme']),
2020-10-21 19:02:32 +00:00
},
2020-10-14 00:11:08 +00:00
methods: {
openAddListModal() {
this.$bvModal.show('add-list');
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.empty-board {
max-width: 300px;
}
</style>