cmdickens
(Michael Dickens)
November 17, 2022, 5:21pm
1
We have a drop down menu of software versions that the user can select for each of our apps.
Is there a way to hide the version: that is displayed right after the app name? In our case, it is showing the git commit for our app.
I see that if a file named VERSION is in the app directory, it will display the version that is in that file instead of the git commit but we want to hide this version: tag
Thanks,
Michael
travert
(Travis Ravert)
November 17, 2022, 6:37pm
2
Hello!
You can customize the presented version to a string for the user in the form
by following the steps you see here in the docs to modify the attributes for that select
:
https://osc.github.io/ood-documentation/latest/app-development/interactive/form.html#customizing-attributes
The options
are going to be what you want to use to change what the user sees vs what you are really submitting.
cmdickens
(Michael Dickens)
November 17, 2022, 6:52pm
3
Thanks, we got that part working, here is an example of the version string we don’t want
travert
(Travis Ravert)
November 17, 2022, 6:59pm
4
Ok, try removing the .git
folder and the VERSION
file and that should do the trick.
cmdickens
(Michael Dickens)
November 21, 2022, 4:31pm
5
Thanks, I’ll rename the .git directory to _git and change it back as needed.
Revisiting this, you can also put unknown
in the VERSION
file and that will disable this feature.
cmdickens
(Michael Dickens)
December 5, 2022, 4:47pm
7
Thanks, this works and can keep the directory as .git
system
(system)
Closed
June 3, 2023, 4:48pm
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.