From a526ec14e92aaada23de3c27adc4bc47b199d162 Mon Sep 17 00:00:00 2001 From: Menaka Jayawardena Date: Mon, 9 Oct 2017 01:30:26 +0530 Subject: [PATCH] Removed console.logs --- .../publisher/src/api/helpers/appMgtApiHelpers.js | 10 ++++++++-- .../main/resources/publisher/src/api/platformMgtApi.js | 8 +++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/helpers/appMgtApiHelpers.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/helpers/appMgtApiHelpers.js index b0d27c3fa4..5f694fc707 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/helpers/appMgtApiHelpers.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/helpers/appMgtApiHelpers.js @@ -57,6 +57,14 @@ export default class Helper { return tmpTags; } + /** + * Generates Platform data object. + * @param general: Platform general information. + * @param config: Platform configurations. + * @param properties: Platform properties. + * + * @return {{platform: *, icon}} data object and the icon image. + * */ static buildPlatform(general, config, properties) { let platform = Object.assign({}, general, config, properties); @@ -65,8 +73,6 @@ export default class Helper { platform.tags = Helper.stringifyTags(platform.tags); - console.log(platform, icon); - let tempData = { "platform": platform, "icon": icon diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/platformMgtApi.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/platformMgtApi.js index ab6721acb7..17bb32b394 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/platformMgtApi.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/api/platformMgtApi.js @@ -28,9 +28,9 @@ import Helper from './helpers/appMgtApiHelpers'; export default class PlatformMgtApi{ /** * Create a new Platform - * @param general: The platform data object. - * @param config: The platform data object. - * @param prop: The platform data object. + * @param general: Platform general information. + * @param config: Platform configurations. + * @param prop: Platform properties. * */ static createPlatform(general, config, prop) { const headers = AuthHandler.createAuthenticationHeaders("multipart/form-data"); @@ -40,8 +40,6 @@ export default class PlatformMgtApi{ platformData.append("platform", platform.platform); platformData.append("icon", platform.icon); - console.log(platformData); - return Axios.post(Constants.platformManagerEndpoints.CREATE_PLATFORM, platformData, {headers: headers}); }