Skip to content

Making recordRequests a bool instead of a string#3

Open
misirlou-tg wants to merge 2 commits intoOpus-Software:masterfrom
misirlou-tg:fix-record-requests
Open

Making recordRequests a bool instead of a string#3
misirlou-tg wants to merge 2 commits intoOpus-Software:masterfrom
misirlou-tg:fix-record-requests

Conversation

@misirlou-tg
Copy link
Copy Markdown

Without this, when adding an imposter the recordRequests property is being sent to mb as a string, not a boolean. If an empty string is sent mb treats this as false, any non-empty string it treats as true.

This make for a confusing user experience, when you open the new imposter form neither radio button is selected (which will be sent to mb as an empty string). If the user clicks on True or False a non-empty string will be sent to mb, and the imposter will be created with recordRequests set to true.

With this change the radio button defaults to False and True/False works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant