Skip to content

Commit

Permalink
Switched to action instead of input for authorization checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnesselr committed Dec 27, 2024
1 parent e4bb052 commit c3115d4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions app/External/Slack/Modals/EquipmentAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,20 @@ public function __construct(?Customer $user)
':heavy_check_mark: The listed member(s) will be authorized to use this equipment.'
)
),
Kit::input(
Kit::actions(
blockId: self::TRAINER_CHECK,
dispatchAction: true,
element: Kit::checkboxes(
actionId: self::TRAINER_CHECK,
options: Kit::optionSet([
Kit::option(
text: 'Make Trainer(s)',
value: true,
description: 'Also make these members trainers for this equipment.',
),
]),
),
elements: [
Kit::checkboxes(
actionId: self::TRAINER_CHECK,
options: Kit::optionSet([
Kit::option(
text: 'Make Trainer(s)',
value: true,
description: 'Also make these members trainers for this equipment.',
),
]),
),
],
),
],
);
Expand Down

0 comments on commit c3115d4

Please sign in to comment.