Skip to content

Move header creation outside yaml view to allow for custom text#4069

Merged
joshri merged 2 commits intomainfrom
yaml-header
Oct 7, 2023
Merged

Move header creation outside yaml view to allow for custom text#4069
joshri merged 2 commits intomainfrom
yaml-header

Conversation

@joshri
Copy link
Copy Markdown
Contributor

@joshri joshri commented Oct 6, 2023

We would like to use the DetailModal component for the PR Preview in the upcoming add source UI in EE - part of this means replacing the kubectl get command from the YamlView header with the path of your potential resource, so I moved the creation of the header up a level in the component tree, and added path as an option in the the createYamlHeader function.

@joshri joshri added the area/ui Issues that require front-end work label Oct 6, 2023
@opudrovs
Copy link
Copy Markdown
Contributor

opudrovs commented Oct 6, 2023

LGTM, but some UI tests are failing.

@joshri
Copy link
Copy Markdown
Contributor Author

joshri commented Oct 6, 2023

yep - missed changing the prop in the test

@joshri joshri merged commit 579ace8 into main Oct 7, 2023
@joshri joshri deleted the yaml-header branch October 7, 2023 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui Issues that require front-end work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants