v0.1.11 Quick fix

This commit is contained in:
Yann Stepienik 2023-04-07 15:21:58 +01:00
parent 8bc30c961f
commit 8aae1fdd45
3 changed files with 6 additions and 2 deletions

View file

@ -94,6 +94,10 @@ export function CosmosContainerPicker({formik, lockTarget, TargetContainer}) {
React.useEffect(() => {
if(lockTarget) {
targetResult.container = TargetContainer.Names[0]
targetResult.containerObject = TargetContainer
targetResult.port = ''
targetResult.protocol = 'http'
onContainerChange(TargetContainer)
}
}, [])

View file

@ -128,7 +128,7 @@ const ServeApps = () => {
<div>
<RouteManagement TargetContainer={openModal}
routeConfig={{
Target: "http://"+openModal.Names[0] + ":8080",
Target: "http://"+openModal.Names[0].replace('/', '') + ":",
Mode: "SERVAPP",
Name: openModal.Names[0].replace('/', ''),
Description: "Expose " + openModal.Names[0].replace('/', '') + " to the internet",

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.1.10",
"version": "0.1.11",
"description": "",
"main": "test-server.js",
"bugs": {