From b56430feb2747cda0596dbd493ca544084e5b41c Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Fri, 14 Jun 2019 11:54:01 +0530 Subject: [PATCH] Disable install button when selected nothing --- .../src/components/apps/release/install/DeviceInstall.js | 3 --- .../src/components/apps/release/install/GroupInstall.js | 2 +- .../src/components/apps/release/install/RoleInstall.js | 2 +- .../src/components/apps/release/install/UserInstall.js | 3 +-- 4 files changed, 3 insertions(+), 7 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 0a19afcf04..234c46fefd 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 @@ -106,9 +106,6 @@ class DeviceInstall extends React.Component { }), }; - - - componentDidMount() { this.fetch(); } 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 e57374f91f..f2da36c473 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 @@ -110,7 +110,7 @@ class GroupInstall extends React.Component { ))}
- +
); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/RoleInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/RoleInstall.js index 358a29ae2e..4befab07e5 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/RoleInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/RoleInstall.js @@ -110,7 +110,7 @@ class RoleInstall extends React.Component { ))}
- +
); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/UserInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/UserInstall.js index 27ee3b8382..0fcf7dada8 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/UserInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/UserInstall.js @@ -86,7 +86,6 @@ class UserInstall extends React.Component { }; render() { - const {fetching, data, value} = this.state; return ( @@ -110,7 +109,7 @@ class UserInstall extends React.Component { ))}
- +
);