Implement stack drag-and-drop and use proper data from store

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-12-29 22:53:53 +01:00
parent 0f46b283b7
commit 35d9b48117
3 changed files with 71 additions and 72 deletions

View File

@@ -23,7 +23,7 @@
<template>
<div @click="openCard" tag="div" class="card">
<div class="card-upper">
<h3>Card {{ id }}</h3>
<h3>{{ card.title }}</h3>
<ul class="labels">
<li v-for="label in labels" :key="label.id" :style="labelStyle(label)"><span>{{ label.title }}</span></li>
</ul>
@@ -67,7 +67,7 @@ export default {
return false
},
card() {
return this.id
return this.$store.getters.cardById(this.id)
},
menu() {
return []