State refactoring, adds a sidebar example, extends the breadcrumb navigation, introduces an API class

This commit is contained in:
Michael Weimann
2018-12-11 19:46:36 +01:00
parent 2649309e57
commit 6a3643384c
11 changed files with 336 additions and 250 deletions

View File

@@ -31,6 +31,10 @@
</router-link>
</div>
</div>
<div v-if="board" class="crumb svg">
<a href="#todo">{{ board.title }}</a>
<span style="display: inline;" class="icon-shared" />
</div>
</div>
</template>
@@ -38,9 +42,16 @@
<script>
export default {
name: 'Controls',
props: {
board: {
type: Object,
required: false,
default: null
}
},
methods: {
toggleNav() {
this.$store.dispatch('nav/toggle')
this.$store.dispatch('toggleNav')
}
}
}