Added the ability to hide slots when full

This commit is contained in:
Stefan Zermatten
2020-11-05 14:05:17 +02:00
parent 749799d869
commit 7cb65954b5
5 changed files with 48 additions and 22 deletions

View File

@@ -34,6 +34,10 @@ let SlotSchema = new SimpleSchema({
type: String,
optional: true,
},
hideWhenFull: {
type: Boolean,
optional: true,
}
});
const ComputedOnlySlotSchema = new SimpleSchema({
@@ -53,7 +57,11 @@ const ComputedOnlySlotSchema = new SimpleSchema({
totalFilled: {
type: SimpleSchema.Integer,
defaultValue: 0,
}
},
spaceLeft: {
type: SimpleSchema.Integer,
optional: true,
},
});
const ComputedSlotSchema = new SimpleSchema()