qcoder icon indicating copy to clipboard operation
qcoder copied to clipboard

Warning pop up does not display when adding selected code with no code

Open elinw opened this issue 6 years ago • 4 comments

When in the application if you click the add selected code button but there is no code in the field, the application crashes. @laderast Any thoughts? Maybe we could test for an empty field and return or else make the button inactive if there is no code.

elinw avatar Nov 17 '18 23:11 elinw

I can add a validate for the button. In Japan right now, but I can add when I get home.

Ted

On Nov 18, 2018, at 9:00 AM, elinw [email protected] wrote:

When in the application if you click the add selected code button but there is no code in the field, the application crashes. @laderast Any thoughts? Maybe we could test for an empty field and return or else make the button inactive if there is no code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

laderast avatar Nov 18 '18 00:11 laderast

Great! Thanks.

On Nov 17, 2018, at 7:12 PM, Ted Laderas [email protected] wrote:

I can add a validate for the button. In Japan right now, but I can add when I get home.

Ted

On Nov 18, 2018, at 9:00 AM, elinw [email protected] wrote:

When in the application if you click the add selected code button but there is no code in the field, the application crashes. @laderast Any thoughts? Maybe we could test for an empty field and return or else make the button inactive if there is no code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropenscilabs/qcoder/issues/106#issuecomment-439657205, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuEfbxWQ5NeudxnWI6Oi5TMoGni5vqZks5uwKXugaJpZM4Yns_E.

elinw avatar Nov 18 '18 00:11 elinw

Created a pull request with the validate statement. it doesn't crash but for some reason the modal with the message isn't coming up if they don't have codes. I will continue to investigate.

laderast avatar Nov 21 '18 04:11 laderast

Thanks, did you think about this any more? I wonder if we should close this as resolved and then create a new issue for the message not appearing. What do you think?

elinw avatar Jun 18 '19 03:06 elinw