diff --git a/backend/go-app/codegen.go b/backend/go-app/codegen.go
index 9644ccd3..a9b4c1b6 100644
--- a/backend/go-app/codegen.go
+++ b/backend/go-app/codegen.go
@@ -423,7 +423,6 @@ func makePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
)
// Use lowercase when checking
- log.Println(data)
/*
if strings.Contains(functionname, "filter") {
//log.Printf("FUNCTION: %s", data)
diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js
index c7cb5e6c..eb6d6e0c 100644
--- a/frontend/src/components/Header.js
+++ b/frontend/src/components/Header.js
@@ -151,9 +151,10 @@ const Header = props => {
- const logoCheck = !homePage ? null : null
+
// Handle top bar or something
+ const logoCheck = !homePage ? null : null
const loginTextBrowser = !isLoggedIn ?
diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx
index 9df961ac..8b1d3ec5 100644
--- a/frontend/src/views/Admin.jsx
+++ b/frontend/src/views/Admin.jsx
@@ -430,11 +430,13 @@ const Admin = (props) => {
const submitUser = (data) => {
console.log("INPUT: ", data)
+ setLoginInfo("")
// Just use this one?
var data = { "username": data.Username, "password": data.Password }
var baseurl = globalUrl
const url = baseurl + '/api/v1/users/register';
+
fetch(url, {
method: 'POST',
credentials: "include",
@@ -446,7 +448,7 @@ const Admin = (props) => {
.then(response =>
response.json().then(responseJson => {
if (responseJson["success"] === false) {
- setLoginInfo("Error in input: " + responseJson.reason)
+ setLoginInfo("Error: " + responseJson.reason)
} else {
setLoginInfo("")
setModalOpen(false)
@@ -912,11 +914,11 @@ const Admin = (props) => {
} else if (newValue === 2) {
getAppAuthentication()
} else if (newValue === 3) {
- getEnvironments()
+ getFiles()
} else if (newValue === 4) {
getSchedules()
} else if (newValue === 5) {
- getFiles()
+ getEnvironments()
} else if (newValue === 6) {
getOrgs()
}
@@ -1157,11 +1159,11 @@ const Admin = (props) => {
},
}}
>
-
+ Edit user
{
+
@@ -1738,7 +1747,7 @@ const Admin = (props) => {
{
{
fullWidth
onChange={(e) => {
console.log("VALUE: ", e.target.value)
- setUser(data.id, "role", e.target.value)
+
+ if (isCloud) {
+ setUser(data.username, "role", e.target.value)
+ } else {
+ setUser(data.id, "role", e.target.value)
+ }
}}
style={{ backgroundColor: theme.palette.surfaceColor, color: "white", height: "50px" }}
>
@@ -1795,33 +1809,29 @@ const Admin = (props) => {
User
}
- style = {{ minWidth: 150, maxWidth: 150}}
+ style ={{ minWidth: 135, maxWidth: 135, marginRight: 15,}}
/>
-
+
+
-
+
)
})}
@@ -1867,7 +1877,7 @@ const Admin = (props) => {
uploadFiles(files)
}
- const filesView = curTab === 5 ?
+ const filesView = curTab === 3 ?
1366 ? 1366 : 1200, margin: "auto", padding: 20 }} onDrop={uploadFile}>
@@ -2311,7 +2321,7 @@ const Admin = (props) => {
: null
- const environmentView = curTab === 3 ?
+ const environmentView = curTab === 5 ?
Environments
@@ -2555,10 +2565,10 @@ const Admin = (props) => {
>
Organization/>
Users />
- {isCloud ? null : App Authentication/>}
+ App Authentication/>
+ Files />
+ Schedules />
{isCloud ? null : Environments/>}
- {isCloud ? null : Schedules />}
- {isCloud ? null : Files />}
{window.location.protocol == "http:" && window.location.port === "3000" ? Hybrid/> : null}
{window.location.protocol == "http:" && window.location.port === "3000" ? Organizations/> : null}
{window.location.protocol === "http:" && window.location.port === "3000" ? Categories/> : null}