Fixed removed slots not being hidden
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
import CreatureProperties from '/imports/api/creature/CreatureProperties.js';
|
import CreatureProperties from '/imports/api/creature/CreatureProperties.js';
|
||||||
import TreeNodeView from '/imports/ui/properties/treeNodeViews/TreeNodeView.vue';
|
import TreeNodeView from '/imports/ui/properties/treeNodeViews/TreeNodeView.vue';
|
||||||
import { softRemoveProperty, insertPropertyFromLibraryNode } from '/imports/api/creature/CreatureProperties.js';
|
import { softRemoveProperty, insertPropertyFromLibraryNode } from '/imports/api/creature/CreatureProperties.js';
|
||||||
|
import getActiveProperties from '/imports/api/creature/getActiveProperties.js';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
TreeNodeView,
|
TreeNodeView,
|
||||||
@@ -96,18 +96,15 @@ export default {
|
|||||||
},
|
},
|
||||||
meteor: {
|
meteor: {
|
||||||
slots(){
|
slots(){
|
||||||
return CreatureProperties.find({
|
return getActiveProperties({
|
||||||
'ancestors.id': this.creatureId,
|
ancestorId: this.creatureId,
|
||||||
type: 'propertySlot',
|
filter: {
|
||||||
$or: [
|
type: 'propertySlot',
|
||||||
{slotConditionResult: true},
|
$or: [
|
||||||
{slotConditionResult: {$exists: false}},
|
{slotConditionResult: true},
|
||||||
]
|
{slotConditionResult: {$exists: false}},
|
||||||
}, {
|
],
|
||||||
sort: {
|
}
|
||||||
order: 1,
|
|
||||||
name: 1,
|
|
||||||
},
|
|
||||||
}).map(slot => {
|
}).map(slot => {
|
||||||
slot.children = CreatureProperties.find({
|
slot.children = CreatureProperties.find({
|
||||||
'parent.id': slot._id,
|
'parent.id': slot._id,
|
||||||
|
|||||||
Reference in New Issue
Block a user