diff --git a/modules/web/js/ballerina/ast/action-invocation-expression.js b/modules/web/js/ballerina/ast/action-invocation-expression.js index c47f5e4068..faced7f737 100644 --- a/modules/web/js/ballerina/ast/action-invocation-expression.js +++ b/modules/web/js/ballerina/ast/action-invocation-expression.js @@ -204,7 +204,8 @@ define(['lodash', 'log', './statement'], function (_, log, Statement) { : (argsString = this.getConnectorVariableReference() + ' , ' + argsString); } - if (!_.isNil(this.getActionPackageName()) && !_.isEmpty(this.getActionPackageName().trim())) { + if (!_.isNil(this.getActionPackageName()) && !_.isEmpty(this.getActionPackageName().trim()) + && !_.isEqual(this.getActionPackageName().trim(), 'Current Package')) { if(this._isActionInvocationStatement){ return this.getActionPackageName() + ':' + this.getActionConnectorName() + '.' + this.getActionName() + '(' + argsString + ')'; diff --git a/modules/web/js/ballerina/item-provider/tool-palette-item-provider.js b/modules/web/js/ballerina/item-provider/tool-palette-item-provider.js index c6c9f507cd..f3f4a9b91b 100644 --- a/modules/web/js/ballerina/item-provider/tool-palette-item-provider.js +++ b/modules/web/js/ballerina/item-provider/tool-palette-item-provider.js @@ -180,7 +180,7 @@ define(['log', 'lodash', './../env/package', './../tool-palette/tool-palette', ' action.classNames = "tool-connector-action tool-connector-last-action"; } action.meta = { - action: action.getAction(), + action: action.getName(), actionConnectorName: connector.getName(), actionPackageName: packageName }; diff --git a/modules/web/js/ballerina/visitors/source-gen/connector-declaration-visitor.js b/modules/web/js/ballerina/visitors/source-gen/connector-declaration-visitor.js index 2e7b56be60..47e1eeea27 100644 --- a/modules/web/js/ballerina/visitors/source-gen/connector-declaration-visitor.js +++ b/modules/web/js/ballerina/visitors/source-gen/connector-declaration-visitor.js @@ -39,7 +39,8 @@ define(['lodash', 'log', 'event_channel', './abstract-source-gen-visitor'], * If we need to add additional parameters which are dynamically added to the configuration start * that particular source generation has to be constructed here */ - var connectorPkg = !_.isNil(connectorDeclaration.getConnectorPkgName()) ? + var connectorPkg = ((!_.isNil(connectorDeclaration.getConnectorPkgName())) + && (!_.isEqual(connectorDeclaration.getConnectorPkgName(), 'Current Package'))) ? (connectorDeclaration.getConnectorPkgName() + ":") : ""; var constructedSource = connectorPkg + connectorDeclaration.getConnectorName() + ' ' + connectorDeclaration.getConnectorVariable() +