From 7b682a35e532090e3a7757b6730f9f6e29d11379 Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Mon, 17 Jun 2019 13:14:08 +0530 Subject: [PATCH] Fix typos in app installation components --- .../apps/release/install/DeviceInstall.js | 6 ++++-- .../components/apps/release/install/GroupInstall.js | 3 +-- .../components/apps/release/install/RoleInstall.js | 3 +-- .../components/apps/release/install/UserInstall.js | 3 +-- .../react-app/src/pages/Login.js | 4 ++-- .../react-app/src/pages/dashboard/Dashboard.js | 5 +---- .../react-app/src/pages/dashboard/apps/Apps.js | 8 +++----- .../src/pages/dashboard/apps/release/Release.js | 13 ++++++++----- 8 files changed, 21 insertions(+), 24 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js index 234c46fefd..c1c7a5f2e5 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js @@ -1,12 +1,12 @@ import React from "react"; import axios from "axios"; import config from "../../../../../public/conf/config.json"; -import {Button, message, Table} from "antd"; +import {Button, message, Table, Typography} from "antd"; import TimeAgo from 'javascript-time-ago' // Load locale-specific relative date/time formatting rules. import en from 'javascript-time-ago/locale/en' - +const {Text} = Typography; const columns = [ { title: 'Device', @@ -196,7 +196,9 @@ class DeviceInstall extends React.Component { const {data,pagination,loading,selectedRows} = this.state; return (
+ Start installing the application for one or more users by entering the corresponding user name. Select install to automatically start downloading the application for the respective user/users. record.deviceIdentifier} dataSource={data} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/GroupInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/GroupInstall.js index f2da36c473..535fefec22 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/GroupInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/GroupInstall.js @@ -90,8 +90,7 @@ class GroupInstall extends React.Component { return (
- Lorem ipsum dolor sit amet, ne tation labores quo, errem facilisis expetendis vel in. Ut choro - decore ubique sed, + Start installing the application for one or more groups by entering the corresponding group name. Select install to automatically start downloading the application for the respective device group/ groups.

- Lorem ipsum dolor sit amet, ne tation labores quo, errem facilisis expetendis vel in. Ut choro - decore ubique sed, + Start installing the application for one or more users by entering the corresponding user name. Select install to automatically start downloading the application for the respective user/users.

Select users

} placeholder="Username"/> )} @@ -100,7 +100,7 @@ class NormalLoginForm extends React.Component { {getFieldDecorator('password', { rules: [{required: true, message: 'Please input your Password!'}], })( - } type="password" placeholder="Password"/> )} diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js index fd331a5429..d8190b9b1a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/Dashboard.js @@ -18,9 +18,6 @@ class Dashboard extends React.Component { } render() { - const {deviceType} = this.props.match.params; - console.log(this.props.match.params); - console.log(deviceType); return (
@@ -36,7 +33,7 @@ class Dashboard extends React.Component { > Android iOS - Web Clips + Web Clips diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/Apps.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/Apps.js index 1a64984858..d8bb0d134e 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/Apps.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/Apps.js @@ -1,10 +1,7 @@ import React from "react"; import "antd/dist/antd.css"; -import {PageHeader, Typography,Input, Button, Row, Col} from "antd"; import AppList from "../../../components/apps/AppList"; -import ReleaseModal from "../../../components/apps/ReleaseModal"; -const Search = Input.Search; const routes = [ { @@ -30,12 +27,13 @@ class Apps extends React.Component { } + render() { + const {deviceType} = this.props.match.params; return (
- - + {deviceType!==null && }
diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js index acdf7763f7..c982c173fc 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/pages/dashboard/apps/release/Release.js @@ -15,7 +15,8 @@ class Release extends React.Component { this.routes = props.routes; this.state={ loading: true, - app: null + app: null, + uuid: null } } @@ -26,8 +27,9 @@ class Release extends React.Component { } componentDidUpdate(prevProps, prevState, snapshot) { - const {uuid} = this.props.match.params; - if (prevProps !== this.props) { + console.log(prevState); + if (prevState.uuid !== this.state.uuid) { + const {uuid} = this.props.match.params; this.fetchData(uuid); } } @@ -53,7 +55,8 @@ class Release extends React.Component { this.setState({ app: app, - loading: false + loading: false, + uuid: uuid }) } @@ -80,7 +83,7 @@ class Release extends React.Component { return ( -
+