Fixed import/export issues with subflows and parent workflows
This commit is contained in:
@@ -6532,15 +6532,15 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{textDecoration: "none", color: "white",}} onClick={(event) => {
|
<div style={{textDecoration: "none", color: "white",}} onClick={(event) => {
|
||||||
if (!isCloud) {
|
//if (!isCloud) {
|
||||||
alert.info("Since this is an on-prem instance. You will need to activate the app yourself. Opening link to download it in a new window.")
|
// alert.info("Since this is an on-prem instance. You will need to activate the app yourself. Opening link to download it in a new window.")
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
event.preventDefault()
|
// event.preventDefault()
|
||||||
window.open(parsedUrl, '_blank')
|
// window.open(parsedUrl, '_blank')
|
||||||
}, 2000)
|
// }, 2000)
|
||||||
} else {
|
//} else {
|
||||||
alert.info(`Activating ${name}`)
|
alert.info(`Activating ${name}`)
|
||||||
}
|
//}
|
||||||
|
|
||||||
console.log("CLICK: ", hit)
|
console.log("CLICK: ", hit)
|
||||||
|
|
||||||
@@ -6679,7 +6679,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="body1" color="textSecondary">
|
<Typography variant="body1" color="textSecondary">
|
||||||
Couldn't find an Activated app with that name. Searching unactivated apps. Click one to Activate it for your organization.
|
Couldn't find the app you're looking for? Searching unactivated apps. Click one of the below apps to Activate it for your organization.
|
||||||
</Typography>
|
</Typography>
|
||||||
<InstantSearch searchClient={searchClient} indexName="appsearch" onClick={() => {
|
<InstantSearch searchClient={searchClient} indexName="appsearch" onClick={() => {
|
||||||
console.log("CLICKED")
|
console.log("CLICKED")
|
||||||
@@ -14837,6 +14837,7 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
<CloseIcon />
|
<CloseIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<ConfigureWorkflow
|
<ConfigureWorkflow
|
||||||
|
userdata={userdata}
|
||||||
alert={alert}
|
alert={alert}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
setAuthenticationType={setAuthenticationType}
|
setAuthenticationType={setAuthenticationType}
|
||||||
|
|||||||
@@ -392,21 +392,21 @@ const Welcome = (props) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<Fade>
|
<Fade>
|
||||||
<AppFramework
|
<AppFramework
|
||||||
inputUsecase={inputUsecase}
|
inputUsecase={inputUsecase}
|
||||||
frameworkData={frameworkData}
|
frameworkData={frameworkData}
|
||||||
setFrameworkData={setFrameworkData}
|
setFrameworkData={setFrameworkData}
|
||||||
selectedOption={"Draw"}
|
selectedOption={"Draw"}
|
||||||
showOptions={false}
|
showOptions={false}
|
||||||
isLoaded={true}
|
isLoaded={true}
|
||||||
isLoggedIn={true}
|
isLoggedIn={true}
|
||||||
globalUrl={globalUrl}
|
globalUrl={globalUrl}
|
||||||
size={0.78}
|
size={0.78}
|
||||||
color={theme.palette.platformColor}
|
color={theme.palette.platformColor}
|
||||||
discoveryWrapper={discoveryWrapper}
|
discoveryWrapper={discoveryWrapper}
|
||||||
setDiscoveryWrapper={setDiscoveryWrapper}
|
setDiscoveryWrapper={setDiscoveryWrapper}
|
||||||
apps={apps}
|
apps={apps}
|
||||||
inputUsecases={usecases}
|
inputUsecases={usecases}
|
||||||
setInputUsecases={setUsecases}
|
setInputUsecases={setUsecases}
|
||||||
/>
|
/>
|
||||||
</Fade>
|
</Fade>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2271,35 +2271,35 @@ const Workflows = (props) => {
|
|||||||
"",
|
"",
|
||||||
data.status,
|
data.status,
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response !== undefined) {
|
if (response !== undefined) {
|
||||||
// SET THE FULL THING
|
// SET THE FULL THING
|
||||||
data.id = response.id;
|
data.id = response.id;
|
||||||
data.first_save = false;
|
data.first_save = false;
|
||||||
data.previously_saved = false;
|
data.previously_saved = false;
|
||||||
data.is_valid = false;
|
data.is_valid = false;
|
||||||
|
|
||||||
// Actually create it
|
// Actually create it
|
||||||
setNewWorkflow(
|
setNewWorkflow(
|
||||||
data.name,
|
data.name,
|
||||||
data.description,
|
data.description,
|
||||||
data.tags,
|
data.tags,
|
||||||
data.default_return_value,
|
data.default_return_value,
|
||||||
data,
|
data,
|
||||||
false,
|
false,
|
||||||
[],
|
[],
|
||||||
"",
|
"",
|
||||||
data.status,
|
data.status,
|
||||||
).then((response) => {
|
).then((response) => {
|
||||||
if (response !== undefined) {
|
if (response !== undefined) {
|
||||||
alert.success("Successfully imported " + data.name);
|
alert.success("Successfully imported " + data.name);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
alert.error("Import error: " + error.toString());
|
alert.error("Import error: " + error.toString());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Actually reads
|
// Actually reads
|
||||||
|
|||||||
Reference in New Issue
Block a user