mnakao
(Masahiro Nakao)
February 22, 2024, 1:26am
1
Dear all,
I configured the path_selector in OOD 3.1.1 as below.
# form.yml.erb
base_dir:
widget: "path_selector"
label: Base directory (PYTHONUSERBASE)
show_hidden: true
show_files: false
However, the web form is as shown below, and the label value is not displayed.
With other widgets, the above setting works, so it seems like this is a problem only with path_selector.
Also, on a side note, if I saved form.js in the application directory, path_selector did not work properly.
Best,
travert
(Travis Ravert)
February 22, 2024, 5:57pm
2
Thanks for mentioning this.
I also am not able to get this to work correctly based off the docs from the release, so I’ve opened a bug report to try and figure this out. It’s possible the docs are either incomplete, or there’s an issue here.
I’ve opened an issue against this here:
opened 05:56PM - 22 Feb 24 UTC
We had a discourse come in after the `3.1` release about the path selector:
htt… ps://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281
Upon trying to answer or recreate it was discovered the current docs for this feature don't see to work if you follow them.
Using `3.1` and creating a `form.yml` with the following:
```yml
working_dir:
label: "Select Directory"
widget: "path_selector"
directory: "/path/to/my/home" # obfuscating, not actual text used
show_hidden: true
show_files: false
```
This results in a pop up that cannot be interacted with.
If you leave out the `directory` as the user does in the discourse sometimes the pop-up shows up, sometimes nothing happens. But again, even if the pop-up shows up I cannot interact with it.
system
(system)
Closed
August 20, 2024, 5:58pm
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.