began work to get inactive state of properties denormalised
This commit is contained in:
39
app/imports/ui/creature/slots/SlotDetailsDialog.vue
Normal file
39
app/imports/ui/creature/slots/SlotDetailsDialog.vue
Normal 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>
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user