From 78bd339cd46022814bb3cf68eee948f2ad11d3b6 Mon Sep 17 00:00:00 2001 From: Jayasanka Weerasinghe Date: Mon, 21 Oct 2019 09:59:56 +0000 Subject: [PATCH] Add loading animation when installing/uninstall app in APPM store --- .../components/apps/release/ReleaseView.js | 5 ++- .../apps/release/install/AppInstallModal.js | 44 ++++++++++--------- .../apps/release/install/AppUninstallModal.js | 33 +++++++------- 3 files changed, 44 insertions(+), 38 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js index 63bb008e8c..6994f16e47 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/ReleaseView.js @@ -17,7 +17,7 @@ */ import React from "react"; -import {Divider, Row, Col, Typography, Button, Dropdown, notification, Menu, Icon} from "antd"; +import {Divider, Row, Col, Typography, Button, Dropdown, notification, Menu, Icon, Spin} from "antd"; import "../../../App.css"; import ImgViewer from "../../apps/release/images/ImgViewer"; import StarRatings from "react-star-ratings"; @@ -126,17 +126,18 @@ class ReleaseView extends React.Component { ); - return (
- - - - - - - - - - - - - - + footer={null}> + + + + + + + + + + + + + + + +
); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/AppUninstallModal.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/AppUninstallModal.js index 14a729466a..6c1f0ce1f1 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/AppUninstallModal.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/AppUninstallModal.js @@ -16,31 +16,33 @@ * under the License. */ import React from "react"; -import {Modal, Tabs} from "antd"; +import {Modal, Spin, Tabs} from "antd"; import DeviceUninstall from "./DeviceUninstall"; import UserUninstall from "./UserUninstall"; import RoleUninstall from "./RoleUninstall"; import GroupUninstall from "./GroupUninstall"; -const { TabPane } = Tabs; +const {TabPane} = Tabs; -class AppUninstallModal extends React.Component{ - state={ - data:[] +class AppUninstallModal extends React.Component { + state = { + data: [] }; + render() { const {deviceType} = this.props; return ( -
- +
+ + - + @@ -52,8 +54,9 @@ class AppUninstallModal extends React.Component{ - -
+ +
+
); } }