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 b1f5c1f Fix build (#23) b1f5c1f is described below commit b1f5c1fe825d2f1a0052da510993aca1260bbf68 Author: Marat Gubaidullin <marat.gubaidul...@gmail.com> AuthorDate: Thu Oct 14 17:34:20 2021 -0400 Fix build (#23) * Fix actions build * Fix actions build --- karavan-designer/src/designer/api/CamelUi.tsx | 7 ++++--- karavan-vscode/tsconfig.json | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/karavan-designer/src/designer/api/CamelUi.tsx b/karavan-designer/src/designer/api/CamelUi.tsx index b377e63..55e87b8 100644 --- a/karavan-designer/src/designer/api/CamelUi.tsx +++ b/karavan-designer/src/designer/api/CamelUi.tsx @@ -212,12 +212,13 @@ export class CamelUi { static getTitle = (element: CamelElement): string => { const uri: string = (element as any).uri; - const name = ComponentApi.getComponentNameFromUri(uri); const k: Kamelet | undefined = CamelUi.getKamelet(element); if (k) { return k.title(); } else { - return uri ? CamelUi.capitalizeName(element.dslName) + " : " + name : CamelUi.capitalizeName(element.dslName); + return uri + ? CamelUi.capitalizeName(element.dslName) + " : " + ComponentApi.getComponentNameFromUri(uri) + : CamelUi.capitalizeName(element.dslName); } }; @@ -228,7 +229,7 @@ export class CamelUi { static isShowUriTooltip = (element: CamelElement): boolean => { const uri: string = (element as any).uri; - return uri !== undefined; + return uri !== undefined && !uri.startsWith("kamelet"); } static getExpressionTooltip = (element: CamelElement): string => { diff --git a/karavan-vscode/tsconfig.json b/karavan-vscode/tsconfig.json index aaed7d4..bcdbc0b 100644 --- a/karavan-vscode/tsconfig.json +++ b/karavan-vscode/tsconfig.json @@ -5,7 +5,11 @@ "outDir": "dist", "module": "esnext", "target": "es5", - "lib": ["es6", "dom"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "sourceMap": true, "jsx": "react", "moduleResolution": "node",