diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/appsTable/AppsTable.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/appsTable/AppsTable.js
index aae593fb2af..24e43a89c61 100644
--- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/appsTable/AppsTable.js
+++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/list-apps/appsTable/AppsTable.js
@@ -123,7 +123,8 @@ class AppsTable extends React.Component {
filters: {},
isDrawerVisible: false,
selectedApp: null,
- selectedAppIndex: -1
+ selectedAppIndex: -1,
+ loading: false
};
config = this.props.context;
}
@@ -222,14 +223,14 @@ class AppsTable extends React.Component {
onUpdateApp = (key, value) => {
const apps = [...this.state.apps];
- apps[this.state.selectedAppIndex][key]= value;
+ apps[this.state.selectedAppIndex][key] = value;
this.setState({
apps
});
};
render() {
- const {isDrawerVisible} = this.state;
+ const {isDrawerVisible, loading} = this.state;
return (
{
return {
onClick: event => {
diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js
index 3230939c727..34384f7f24c 100644
--- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js
+++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/apps/release/lifeCycle/LifeCycle.js
@@ -132,7 +132,7 @@ class LifeCycle extends React.Component {
render() {
- const {currentStatus, selectedStatus} = this.state;
+ const {currentStatus, selectedStatus, isConfirmButtonLoading} = this.state;
const {lifecycle} = this.props;
const selectedValue = selectedStatus == null ? [] : selectedStatus;
let proceedingStates = [];
@@ -180,21 +180,17 @@ class LifeCycle extends React.Component {
type="primary"
htmlType="button"
onClick={this.showReasonModal}
- disabled={selectedStatus == null}
- >
+ loading={isConfirmButtonLoading}
+ disabled={selectedStatus == null}>
Change
-
-
-
+ okText="Confirm">
You are going to change the lifecycle state from,
{currentStatus}to