From 8b1c688e99fbd2892dea82b5111789b8064237f3 Mon Sep 17 00:00:00 2001 From: Gabriel Rilo Date: Fri, 20 Jan 2017 00:39:52 -0300 Subject: [PATCH 1/2] Adding SFDC config var --- app.json | 5 +++++ client/app/simulator/mobile/device-panel.component.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 2177a6a6..f4301cc6 100644 --- a/app.json +++ b/app.json @@ -37,6 +37,11 @@ "description": "Your Salesforce token", "required": false }, + "SALESFORCE_SYNC_ALL_ASSETS": { + "description": "Export all devices into Salesforce Account and Assets", + "required": true, + "value": false + }, "DEVICE_HEARTBEAT": { "description": "Virtual device auto ping", "required": false, diff --git a/client/app/simulator/mobile/device-panel.component.js b/client/app/simulator/mobile/device-panel.component.js index 07582988..d47b466e 100644 --- a/client/app/simulator/mobile/device-panel.component.js +++ b/client/app/simulator/mobile/device-panel.component.js @@ -95,8 +95,8 @@ const devicePanelComponent = { } // CONC-670 - this.mySensors = _.cloneDeep(this.device.sensors); - delete(this.mySensors._log); + this.mySensors = _.cloneDeep(this.device.sensors) + delete (this.mySensors._log) const EXCLUDED_INFO_FIELDS = ['excludedInfoFields', 'simulate', 'subscribe', 'template', 'update', 'sensors', 'ok', 'channels'] this.device.excludedInfoFields = EXCLUDED_INFO_FIELDS From 9145cad11e8a9c3d431a49edeb5a60c53a5463ac Mon Sep 17 00:00:00 2001 From: Gabriel Rilo Date: Fri, 20 Jan 2017 00:40:37 -0300 Subject: [PATCH 2/2] Making var not required --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index f4301cc6..daa69d3a 100644 --- a/app.json +++ b/app.json @@ -39,7 +39,7 @@ }, "SALESFORCE_SYNC_ALL_ASSETS": { "description": "Export all devices into Salesforce Account and Assets", - "required": true, + "required": false, "value": false }, "DEVICE_HEARTBEAT": {