Function to prefill promote modal w/ query params#434
Conversation
|
related: #432 |
d1wilko
left a comment
There was a problem hiding this comment.
hey @kgwebsites small question on this one :)
| const cx = classNames.bind(css); | ||
|
|
||
| const DeploymentForm = ({ handleSubmit, handleCancel }) => { | ||
| const DeploymentForm = ({ handleSubmit, handleCancel, action, target, commit, parameters }) => { |
There was a problem hiding this comment.
Is the commit prop ever used?
There was a problem hiding this comment.
ah good catch. This was copied over from the repo.jsx. I removed it from both, since it is not a used query param in either of the build/promote modals
There was a problem hiding this comment.
sounds good - thank you :)
|
Can't find any documentation on this, would appreciate guidance here! Nevermind, after iterating I found out to pre-fill the promotion form through URL parameters looks like this (a json array of kv objects: |
Previously I added the abillity to prefill a custom build via query params. Duplicating that functionality over to build promotions as well.