|
|
@ -140,8 +140,8 @@ export async function save_as_component(node, app) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if(res.status == 200) { |
|
|
|
if(res.status == 200) { |
|
|
|
storeGroupNode(name, subgraph); |
|
|
|
storeGroupNode(component_name, subgraph); |
|
|
|
const config = new GroupNodeConfig(name, subgraph); |
|
|
|
const config = new GroupNodeConfig(component_name, subgraph); |
|
|
|
await config.registerType(); |
|
|
|
await config.registerType(); |
|
|
|
|
|
|
|
|
|
|
|
let path = await res.text(); |
|
|
|
let path = await res.text(); |
|
|
@ -183,6 +183,10 @@ export async function save_as_component(node, app) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if(res.status == 200) { |
|
|
|
if(res.status == 200) { |
|
|
|
|
|
|
|
storeGroupNode(component_name, subgraph); |
|
|
|
|
|
|
|
const config = new GroupNodeConfig(component_name, subgraph); |
|
|
|
|
|
|
|
await config.registerType(); |
|
|
|
|
|
|
|
|
|
|
|
let path = await res.text(); |
|
|
|
let path = await res.text(); |
|
|
|
app.ui.dialog.show(`Component '${component_name}' is saved into:\n${path}`); |
|
|
|
app.ui.dialog.show(`Component '${component_name}' is saved into:\n${path}`); |
|
|
|
} |
|
|
|
} |
|
|
|