This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push: new b412ec39 Fix #748 b412ec39 is described below commit b412ec393ccf31c0e2e124e272552767c78edbd9 Author: Marat Gubaidullin <marat.gubaidul...@gmail.com> AuthorDate: Thu Apr 27 09:57:00 2023 -0400 Fix #748 --- karavan-designer/src/App.tsx | 2 -- karavan-space/src/App.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/karavan-designer/src/App.tsx b/karavan-designer/src/App.tsx index eec9ce55..751295a3 100644 --- a/karavan-designer/src/App.tsx +++ b/karavan-designer/src/App.tsx @@ -106,13 +106,11 @@ class App extends React.Component<Props, State> { const kamelets: string[] = []; data[0].split("\n---\n").map(c => c.trim()).forEach(z => kamelets.push(z)); KameletApi.saveKamelets(kamelets, true); - this.toast("Success", "Loaded " + kamelets.length + " kamelets", 'success'); const jsons: string[] = []; JSON.parse(data[1]).forEach((c: any) => jsons.push(JSON.stringify(c))); ComponentApi.saveComponents(jsons, true); - this.toast("Success", "Loaded " + jsons.length + " components", 'success'); this.setState({loaded: true}); TemplateApi.saveTemplate("org.apache.camel.AggregationStrategy", data[2]); diff --git a/karavan-space/src/App.tsx b/karavan-space/src/App.tsx index 227a5cba..f8fb4792 100644 --- a/karavan-space/src/App.tsx +++ b/karavan-space/src/App.tsx @@ -113,14 +113,12 @@ class App extends React.Component<Props, State> { const kamelets: string[] = []; data[0].split("\n---\n").map(c => c.trim()).forEach(z => kamelets.push(z)); KameletApi.saveKamelets(kamelets, true); - this.toast("Success", "Loaded " + kamelets.length + " kamelets", 'success'); const components: [] = JSON.parse(data[1]); const jsons: string[] = []; components.forEach(c => jsons.push(JSON.stringify(c))); ComponentApi.saveComponents(jsons, true); - this.toast("Success", "Loaded " + jsons.length + " components", 'success'); this.setState({loaded: true, key: Math.random().toString()}); TemplateApi.saveTemplate("org.apache.camel.AggregationStrategy", data[2]);