From f5c1eea6fa9bfe4e149f79f9f676f5957a6c6d16 Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Tue, 23 Apr 2019 19:43:06 +0530 Subject: [PATCH] removed console logs --- .../react-app/src/index.js | 6 +++--- .../react-app/src/pages/Login.js | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js index 734182829b7..3fc404c07d0 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/index.js @@ -17,15 +17,15 @@ const routes = [ component: Login }, { - path: '/publisher/dashboard', + path: '/publisher/application-mgt', component: Dashboard, routes: [ { - path: '/publisher/dashboard/apps', + path: '/publisher/application-mgt/apps', component: Apps }, { - path: '/publisher/dashboard/new-app', + path: '/publisher/application-mgt/new-app', component: AddNewApp } ] diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/Login.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/Login.js index 3eb16f993d1..f3d10d1631c 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/Login.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/Login.js @@ -64,17 +64,11 @@ class NormalLoginForm extends React.Component { let data = "username=" + values.username + "&password=" + values.password + "&platform=publisher"; axios.post('https://localhost:9443/api/application-mgt-handler/v1.0/login', data ).then(res => { - console.log(res); if (res.status === 200) { - console.log(res); - console.log(res.data); - console.log(res.status); window.location = res.data.url; } - }).catch(function (error) { if (error.response.status === 400) { - console.log("hoo"); thisForm.setState({ inValid: true, loading: false