Skip to content

Commit

Permalink
Updated ConfigRead for #13. Added import JSON file.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelProminic committed Apr 17, 2024
1 parent 9ae2834 commit c7dc07d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Super.Human.Portal_Agents/data/create_nomad_helper_url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"title": "Create configuration document required for nomadhelper.html",
"versionjson": "1.0.0",
"steps": [
{
"title": "--- Import Documents ---",
"databases": [
{
"action": "update",
"filePath": "SuperHumanPortal.nsf",
"documents":[
{
"action": "create",
"computeWithForm": true,
"items": {
"Form":"Config Value",
"Key":"nomad_helper_url",
"Value":"https://nomadweb.test22.shi.com/nomad/nomadhelper.html"
}
}
]
}
]
}
]
}
28 changes: 28 additions & 0 deletions Super.Human.Portal_Agents/data/update_nomad_helper_url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Create configuration document required for nomadhelper.html",
"versionjson": "1.0.0",
"steps": [
{
"title": "--- Import Documents ---",
"databases": [
{
"action": "update",
"filePath": "SuperHumanPortal.nsf",
"documents":[
{
"action": "update",
"findDocument": {
"Form":"Config Value",
"Key": "nomad_helper_url"
},
"computeWithForm": true,
"items": {
"Value":"https://nomadweb.test22.shi.com/nomad/nomadhelper.html"
}
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ protected void runAction() {
addConfigPropertyBoolean("ui_documentation_editable", false); // `true` if the Getting Started UI should be editable, `false` otherwise
addConfigPropertyBoolean("ui_documentation_show_unid", false); // `true` if the DocumentationUNID column should be displayed, false otherwise.
addConfigPropertyString("ui_title", "Super.Human.Portal"); // The title for the application. This may be customized with the server name or the organizational certifier.
addConfigPropertyString("nomad_helper_url", ""); // A URL for nomadhelper.html if this has been configured. If it is blank, open the Nomad URLs directly.


}
Expand Down

1 comment on commit c7dc07d

@JoelProminic
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagged the wrong issue. Was supposed to be #53.

Please sign in to comment.