From 11a2851ac471deb79adb8f6fcbe8a7d9e69ba49b Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 10 Mar 2021 14:51:38 +0200 Subject: [PATCH] Fixed slots with computed expected quantity not hiding when full --- app/imports/ui/creature/slots/Slots.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/imports/ui/creature/slots/Slots.vue b/app/imports/ui/creature/slots/Slots.vue index 834c6261..f8359868 100644 --- a/app/imports/ui/creature/slots/Slots.vue +++ b/app/imports/ui/creature/slots/Slots.vue @@ -130,7 +130,7 @@ export default { }).map(slot => { if ( !this.showHiddenSlots && - slot.quantityExpected === 0 && + slot.quantityExpectedResult === 0 && slot.hideWhenFull ){ slot.children = [] @@ -144,11 +144,12 @@ export default { } return slot; }).filter(slot => !( // Hide full and ignored slots - !this.showHiddenSlots && - slot.hideWhenFull && - slot.quantityExpected > 0 && - slot.totalFilled >= slot.quantityExpected || - slot.ignored + !this.showHiddenSlots && ( + slot.hideWhenFull && + slot.quantityExpectedResult > 0 && + slot.spaceLeft <= 0 || + slot.ignored + ) )); }, },