From e06412496affa7312682228fad0a0765e619a1fd Mon Sep 17 00:00:00 2001 From: NeeruAR Date: Thu, 14 Jul 2022 11:26:16 +0530 Subject: [PATCH] version 1.2.6 datahub session storage --- package.json | 2 +- projects/gp-smart-echart-widget/package.json | 2 +- .../src/lib/gp-smart-echart-widget.component.ts | 4 ++-- runtime/cumulocity.json | 2 +- runtime/package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index b12e46e..d95c341 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gp-smart-echart-widget", - "version": "1.2.5", + "version": "1.2.6", "description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.", "author": "Neeru Arora - Software AG, Global Presales", "license": "Apache 2.0", diff --git a/projects/gp-smart-echart-widget/package.json b/projects/gp-smart-echart-widget/package.json index 2cbb801..3b1601a 100644 --- a/projects/gp-smart-echart-widget/package.json +++ b/projects/gp-smart-echart-widget/package.json @@ -1,6 +1,6 @@ { "name": "gp-smart-echart-widget", - "version": "1.2.5", + "version": "1.2.6", "description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.", "author": "Neeru Arora - Software AG, Global Presales", "license": "Apache 2.0", diff --git a/projects/gp-smart-echart-widget/src/lib/gp-smart-echart-widget.component.ts b/projects/gp-smart-echart-widget/src/lib/gp-smart-echart-widget.component.ts index bad674c..07e88fd 100644 --- a/projects/gp-smart-echart-widget/src/lib/gp-smart-echart-widget.component.ts +++ b/projects/gp-smart-echart-widget/src/lib/gp-smart-echart-widget.component.ts @@ -236,7 +236,7 @@ export class GpSmartEchartWidgetComponent implements OnInit { this.serviceData = await response.json(); this.isDatahubPostCall = true; if (this.serviceData != null) { - getDataFromSession.push({ response: this.serviceData, url: userInput.datahubUrl }); + getDataFromSession.push({ response: this.serviceData, url: userInput.sqlQuery }); sessionStorage.setItem('Chartsession', JSON.stringify(getDataFromSession)); sessionStorage.setItem('serviceRunning', JSON.stringify('false')); } @@ -286,7 +286,7 @@ export class GpSmartEchartWidgetComponent implements OnInit { this.serviceData = await response.json(); this.isDatahubPostCall = true; if (this.serviceData !== null) { - temp.push({ response: this.serviceData, url: userInput.datahubUrl }); + temp.push({ response: this.serviceData, url: userInput.sqlQuery }); this.setDataInSessionStorage('Chartsession', temp); this.setDataInSessionStorage('serviceRunning', 'false'); } diff --git a/runtime/cumulocity.json b/runtime/cumulocity.json index be7253c..0573dc3 100644 --- a/runtime/cumulocity.json +++ b/runtime/cumulocity.json @@ -9,7 +9,7 @@ "manifest": { "noAppSwitcher": true, "requiredPlatformVersion": ">=1011.0.0", - "version":"1.2.5", + "version":"1.2.6", "author":"Software AG, Global Presales", "description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.", "license": "Apache 2.0" diff --git a/runtime/package.json b/runtime/package.json index 4e149e4..b623fc1 100644 --- a/runtime/package.json +++ b/runtime/package.json @@ -4,7 +4,7 @@ "dist\\bundle-src\\custom-widget.js": "smart-echart-runtime-widget-CustomWidget", "dist/bundle-src/custom-widget.js": "smart-echart-runtime-widget-CustomWidget" }, - "version": "1.2.5", + "version": "1.2.6", "description": "Runtime package.json for library widget (written by Software AG Global Presales)", "author": "Darpankumar Lalani - Software AG, Global Presales", "license": "Apache 2.0"