began work to get inactive state of properties denormalised

This commit is contained in:
Stefan Zermatten
2020-11-03 15:57:14 +02:00
parent 3f7ddd62fc
commit 2fb0ba79c6
9 changed files with 106 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
<template lang="html">
<dialog-base>
<v-toolbar-title slot="toolbar">
Slots
</v-toolbar-title>
<slots creature-id="creatureId" />
</dialog-base>
</template>
<script>
import Creatures from '/imports/api/creature/Creatures.js';
import DialogBase from '/imports/ui/dialogStack/DialogBase.vue';
import Slots from '/imports/ui/creature/slots/Slots.vue'
export default {
components: {
DialogBase,
Slots,
},
props: {
creatureId: {
type: String,
required: true,
},
},
reactiveProvide: {
name: 'context',
include: ['creature'],
},
meteor: {
creature(){
return Creatures.findOne(this.creatureId);
},
}
}
</script>
<style lang="css" scoped>
</style>

View File

@@ -8,7 +8,7 @@
<div class="library-nodes">
<v-fade-transition mode="out-in">
<column-layout
v-if="$subReady.slotFillers && libraryNodes.length"
v-if="$subReady.slotFillers && libraryNodes && libraryNodes.length"
wide-columns
>
<div
@@ -171,7 +171,7 @@ export default {
},
libraryNodes(){
let filter = {};
if (this.model.slotTags.length){
if (this.model.slotTags && this.model.slotTags.length){
filter.tags = {$all: this.model.slotTags};
}
if (this.model.slotType){