From 604451e098611ec41654d00ef91bc2f958866036 Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 1 Jun 2020 13:54:19 +0200 Subject: [PATCH] Fixed app creator sizes --- frontend/src/AngularWorkflow.js | 1 - frontend/src/AppCreator.js | 4 +++- frontend/src/defaultCytoscapeStyle.js | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/AngularWorkflow.js b/frontend/src/AngularWorkflow.js index e09aed33..a6f51927 100644 --- a/frontend/src/AngularWorkflow.js +++ b/frontend/src/AngularWorkflow.js @@ -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) } diff --git a/frontend/src/AppCreator.js b/frontend/src/AppCreator.js index a02317ba..e34e3945 100644 --- a/frontend/src/AppCreator.js +++ b/frontend/src/AppCreator.js @@ -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") diff --git a/frontend/src/defaultCytoscapeStyle.js b/frontend/src/defaultCytoscapeStyle.js index 5621a377..4e3c0b24 100644 --- a/frontend/src/defaultCytoscapeStyle.js +++ b/frontend/src/defaultCytoscapeStyle.js @@ -35,6 +35,8 @@ const data = [{ 'shape': 'square', 'background-color': '#213243', 'border-color': '#81c784', + 'background-width': '100%', + 'background-height': '100%', }, }, {