Disable judges' game panel buttons if required inputs aren't set.#17
Disable judges' game panel buttons if required inputs aren't set.#17timparenti wants to merge 1 commit intocmukgb:mainfrom
Conversation
Specifically, "start game" and "set flags" buttons. Resolves cmukgb#15.
|
Some amount of form validation can probably come out of |
|
This looks fine, but my only concern is that, if the button is disabled, there's no indication why. I thought about this because of course now we could remove the requirement checking code from |
|
I'll keep thinking on it this week, then. Initial thought is a combination of:
Let's keep this open while I iterate on that work, since that kinda goes hand-in-hand. |
|
Sounds good. There’s definitely a way to put a bootstrap tooltip on a disabled button, but it’s a bit gross because you have to wrap the button in something not disabled. I’ll poke at it when I have time, but that will probably be a few weeks. After today I’m not letting myself work on this for a bit because it’s been taking too much time and I need to prepare for a trip this weekend.
… On Mar 4, 2019, at 04:40, Tim Parenti ***@***.***> wrote:
I'll keep thinking on in this week, then. Initial thought is a combination of:
A tooltip on the button whenever it's disabled, and
The existing error stylization in postForm() being moved into some sort of "if you try to click it anyway" function.
Let's keep this open for that work, since that kinda goes hand-in-hand.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Specifically, "start game" and "set flags" buttons.
Resolves #15.