From d6c488e59013d799243a69d417170a648f76df57 Mon Sep 17 00:00:00 2001 From: ethan-sparkdevnetwork Date: Thu, 17 Aug 2023 15:42:39 -0700 Subject: [PATCH] - (Event) Fixed issue in the Obsidian RegistrationEntry block where fee items in the DDL control that has 0 remaining where not disabled and could still be selected. --- .../src/Event/RegistrationEntry/feeField.partial.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rock.JavaScript.Obsidian.Blocks/src/Event/RegistrationEntry/feeField.partial.ts b/Rock.JavaScript.Obsidian.Blocks/src/Event/RegistrationEntry/feeField.partial.ts index dfd378ca87a..ce0878ae70d 100644 --- a/Rock.JavaScript.Obsidian.Blocks/src/Event/RegistrationEntry/feeField.partial.ts +++ b/Rock.JavaScript.Obsidian.Blocks/src/Event/RegistrationEntry/feeField.partial.ts @@ -98,7 +98,8 @@ export default defineComponent({ dropDownListOptions(): ListItemBag[] { return this.fee.items.map(i => ({ text: this.getItemLabel(i), - value: i.guid + value: i.guid, + disabled: (i.countRemaining != null && i.countRemaining < 1) })); }, numberUpDownGroupOptions(): NumberUpDownGroupOption[] {