Fixed app creator sizes

This commit is contained in:
frikky
2020-06-01 13:54:19 +02:00
parent 67273e611f
commit 604451e098
3 changed files with 5 additions and 2 deletions
-1
View File
@@ -2207,7 +2207,6 @@ const AngularWorkflow = (props) => {
if ((selectedVariableParameter === null || selectedVariableParameter === undefined) && (workflow.workflow_variables !== null && workflow.workflow_variables.length > 0)) {
// FIXME - this is the bad thing
console.log("Does it go here or what?")
setSelectedVariableParameter(workflow.workflow_variables[0].name)
}
+3 -1
View File
@@ -369,6 +369,7 @@ const AppCreator = (props) => {
securitySchemes = data.components.securitySchemes
}
// FIXME: Have multiple authentication options?
if (securitySchemes !== undefined) {
console.log("Am I in here?")
for (const [key, value] of Object.entries(securitySchemes)) {
@@ -377,7 +378,6 @@ const AppCreator = (props) => {
break
} else if (value.type === "apiKey") {
setAuthenticationOption("API key")
setParameterName(value.name)
value.in = value.in.charAt(0).toUpperCase() + value.in.slice(1);
setParameterLocation(value.in)
@@ -385,6 +385,8 @@ const AppCreator = (props) => {
console.log("APIKEY SELECT: ", apikeySelection)
alert.error("Might be error in setting up API key authentication")
}
setParameterName(value.name)
break
} else if (value.scheme === "basic") {
setAuthenticationOption("Basic auth")
+2
View File
@@ -35,6 +35,8 @@ const data = [{
'shape': 'square',
'background-color': '#213243',
'border-color': '#81c784',
'background-width': '100%',
'background-height': '100%',
},
},
{