-
Notifications
You must be signed in to change notification settings - Fork 90
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
Validate hostPath based on the error callback from FileAutoComplete #1481
base: main
Are you sure you want to change the base?
Conversation
src/ImageRunModal.jsx
Outdated
@@ -659,6 +659,7 @@ export class ImageRunModal extends React.Component { | |||
* Index needs to corellate with a row number | |||
*/ | |||
dynamicListOnValidationChange = (value, key) => { | |||
console.log('dynamic list validation', value, key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug leftover....
src/Volume.jsx
Outdated
@@ -38,9 +40,11 @@ export const Volume = ({ id, item, onChange, idx, removeitem, additem, options, | |||
> | |||
<FileAutoComplete id={id + "-host-path"} | |||
value={item.hostPath || ''} | |||
onChange={value => { | |||
onChange={(value, error) => { | |||
console.log(`value: ${value}, error: ${error}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug leftover
Okay, can you please clean up the debugging leftovers, and add an integration test? Thanks! |
How do we deal with the dependent Cockpit PR? Edit: Landed cockpit-project/cockpit#19600 so will do the follow up. |
40d33d0
to
297b0ee
Compare
Done, but now I found another issue. When we provide a path without a trailing slash the validation doesn't work. |
297b0ee
to
96b1cf2
Compare
This depends on this PR in Cockpit: cockpit-project/cockpit#19600
@martinpitt you looked at the validation PR before, mind giving this a look as well?