Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically populate the key field based on the flag name #155

Merged
merged 2 commits into from
Oct 7, 2019

Conversation

aaronraff
Copy link
Contributor

Closes: #136

Whenever the flag name input is updated a check is done to see if
the flag key is either empty or the same as the flag name. If so,
the flag key will be updated accordingly. This check is done to
ensure that custom keys are not overridden when changing the flag
name.

This also moves the flag name field above the flag key field when creating a new flag.

Whenever the flag name input is updated a check is done to see if
the flag key is either empty or the same as the flag name. If so,
the flag key will be updateed accordingly. This check is done to
ensure that custom keys are not overriden when changing the flag
name.
go.mod Show resolved Hide resolved
@markphelps
Copy link
Collaborator

This is dope. Thanks @aaronraff! I'm gonna copy this impl to the segment form as well as I forgot to add that as part of the issue.

Also FYI, im working on a branch/PR to switch to gobuffalo/packr for embedding the assets, which will get rid of the go generate workflow and should make developing locally a bit easier in the future.

Thanks again!

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.

Auto populate key fields based on name
2 participants