Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): display valuesobject if set (argoproj#14257)
* fix: display valuesobject if set With argoproj#11538 we now have the ability to set helm values as an object instead of a string, but we also need to be able to correctly display it in the UI if it is set. Signed-off-by: Blake Pettersson <[email protected]> * fix: set valuesobject on save If `valuesObject` is present, set it to the value of `input.spec.source.helm.values` on save, as an unmarshaled json string. Signed-off-by: Blake Pettersson <[email protected]> * fix: set `helm.values` to empty string on save If `valuesObject` exists, set `input.spec.source.helm.values` to an empty string once `valuesObject` has been unmarshalled from the values input. This is to prevent unnecessary duplication of the values. Signed-off-by: Blake Pettersson <[email protected]> * chore: eslint Signed-off-by: Blake Pettersson <[email protected]> * chore: eslint Signed-off-by: Blake Pettersson <[email protected]> * fix: deep clone app This is so that we can conditionally set `source.helm.values` without inadvertently affecting other parts of the app. Only when the edit button is pressed do we toggle `source.helm.values`. Signed-off-by: Blake Pettersson <[email protected]> * chore: eslint Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]> Signed-off-by: Jimmy Neville <[email protected]>
- Loading branch information