gamebrary/src/components/Board/EmptyBoard.vue

42 lines
751 B
Vue
Raw Normal View History

2020-10-21 19:02:32 +00:00
<!-- TODO: translate -->
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"
:bg-variant="nightMode ? 'dark' : ''"
:text-variant="nightMode ? 'white' : ''"
:border-variant="nightMode ? 'light' : ''"
>
2020-10-14 00:11:08 +00:00
<p>This board is empty</p>
2020-10-21 19:02:32 +00:00
<b-button
:variant="nightMode ? 'light' : 'primary'"
@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: {
...mapGetters(['nightMode']),
},
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>