{
+ selectedAuthentication.label = e.target.value
+ }}
+ />
+
+
{selectedAuthentication.fields.map((data, index) => {
+ var fieldname = data.key.replaceAll("_", " ")
+ if (fieldname.endsWith(" basic")) {
+ fieldname = fieldname.substring(0, fieldname.length - 6)
+ }
+
//console.log("DATA: ", data, selectedAuthentication)
return (
- {data.key}
+ {fieldname}
{
var error = false;
+ var fails = 0
for (var key in authenticationFields) {
const item = authenticationFields[key];
if (item.value.length === 0) {
+ fails += 1
console.log("ITEM: ", item);
//var currentnode = cy.getElementById(data.id)
var textfield = document.getElementById(
@@ -1866,14 +1914,13 @@ If you're interested, please let me know a time that works for you, or set up a
}
}
- if (error) {
- toast("All fields must have a new value");
+ if (error && fails === authenticationFields.length) {
+ toast("Updating auth with new name only")
+ saveAuthentication(selectedAuthentication);
} else {
toast("Saving new version of this authentication");
selectedAuthentication.fields = authenticationFields;
saveAuthentication(selectedAuthentication);
- setSelectedAuthentication({});
- setSelectedAuthenticationModalOpen(false);
}
}}
color="primary"
@@ -3732,7 +3779,7 @@ If you're interested, please let me know a time that works for you, or set up a
}}
/>
{/*
diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index 53a43232..9ccbd3c5 100755
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -1824,6 +1824,7 @@ const AngularWorkflow = (defaultprops) => {
setExecutionModalOpen(true);
setExecutionModalView(1);
start();
+ navigate(`/workflows/${props.match.params.key}?execution_id=${responseJson.execution_id}`)
})
.catch((error) => {
//toast(error.toString());