WIP Buttons only when not editing

This commit is contained in:
portree_kid
2020-05-25 21:13:13 +02:00
parent 37e97e84e2
commit 9a3f473949
4 changed files with 17 additions and 5 deletions
+6 -1
View File
@@ -22,7 +22,7 @@
</el-row>
<el-row v-for="w in wip" :key="w.icao">
<Airport :airport="w"></Airport>
<Airport :airport="w" :editing="editing"></Airport>
</el-row>
</div>
</section>
@@ -43,6 +43,11 @@
methods: {
},
computed: {
editing: {
get: function () {
return this.$store.state.Editable.editing
}
},
wip: function () {
return this.$store.state.Settings.wip
}