Fixed issues with app generation, welcome form and other parts

This commit is contained in:
frikky
2022-08-01 22:47:29 +02:00
parent 2d51aaaa82
commit cfa4960210
4 changed files with 12 additions and 7 deletions
+4 -3
View File
@@ -2722,8 +2722,7 @@ const AngularWorkflow = (defaultprops) => {
curaction.parameters[key].options.length > 0 &&
curaction.parameters[key].value === ""
) {
curaction.parameters[key].value =
curaction.parameters[key].options[0];
curaction.parameters[key].value = curaction.parameters[key].options[0];
}
}
} else {
@@ -2960,6 +2959,8 @@ const AngularWorkflow = (defaultprops) => {
"uid",
"uuid",
"team id",
"message id",
"message_id",
],
title: ["title", "name", "message"],
description: ["description", "explanation", "story", "details"],
@@ -2980,7 +2981,7 @@ const AngularWorkflow = (defaultprops) => {
};
// 1. Find the right synonym
// 2.
// 2. Replace with an autocomplete if it exists
var selectedsynonyms = [paramname];
for (const [key, value] of Object.entries(synonyms)) {
if (key === paramname || value.includes(paramname)) {
+2 -2
View File
@@ -3850,7 +3850,7 @@ const AppCreator = (defaultprops) => {
Enable Fileupload
</Button>
) : null}
{currentActionMethod === "GET" ? (
{/*currentActionMethod === "GET" ? (
<Button
color="primary"
variant={fileDownloadEnabled ? "contained" : "outlined"}
@@ -3872,7 +3872,7 @@ const AppCreator = (defaultprops) => {
>
Download as file
</Button>
) : null}
) : null*/}
{fileUploadEnabled ? (
<TextField
required