Fixed minor bugs and added oauth2 auto-connect buttons for certain apps

This commit is contained in:
frikky
2022-08-16 01:35:03 +02:00
parent e9b4aef3a6
commit b876698c9f
7 changed files with 167 additions and 17 deletions
+1
View File
@@ -14268,6 +14268,7 @@ const AngularWorkflow = (defaultprops) => {
setSelectedAction={setSelectedAction}
setNewAppAuth={setNewAppAuth}
setAuthenticationModalOpen={setAuthenticationModalOpen}
isCloud={isCloud}
/>
) : (
<AuthenticationData app={selectedApp} />
+8 -3
View File
@@ -410,6 +410,11 @@ export const validateJson = (showResult) => {
try {
if (!showResult.includes("{") && !showResult.includes("[")) {
jsonvalid = false
return {
valid: jsonvalid,
result: showResult,
};
}
} catch (e) {
showResult = showResult.split("'").join('"');
@@ -1127,12 +1132,12 @@ const Workflows = (props) => {
const exportAllWorkflows = (allWorkflows) => {
for (var i = 0; i < allWorkflows.length; i++) {
setTimeout(() => {
console.log(workflows[i].name)
exportWorkflow(workflows[i], false)
console.log(allWorkflows[i].name)
exportWorkflow(allWorkflows[i], false)
}, i * 200);
}
alert.info(`exporting and keeping original for all ${workflows.length} workflows`);
alert.info(`exporting and keeping original for all ${allWorkflows.length} workflows`);
};
const deduplicateIds = (data) => {