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 234c46fefd8..c1c7a5f2e53 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 f2da36c4738..535fefec220 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 fd331a54293..d8190b9b1a2 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 1a649848582..d8bb0d134e7 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 acdf7763f78..c982c173fcd 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 ( -
+