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 72f2b11869..24f721a0c4 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 @@ -1,5 +1,5 @@ import React from "react"; -import {Typography, Tag, Divider, Select, Button, Modal, message, notification} from "antd"; +import {Typography, Tag, Divider, Select, Button, Modal, message, notification, Collapse} from "antd"; import axios from "axios"; import config from "../../../../../public/conf/config.json"; @@ -9,6 +9,7 @@ import './LifeCycle.css'; const {Text, Title, Paragraph} = Typography; const {Option} = Select; +const Panel = Collapse.Panel; const modules = { toolbar: [ @@ -193,6 +194,33 @@ class LifeCycle extends React.Component { Change + + + Lorem Ipsum + + { + Object.keys(lifecycle).map(lifecycleState => { + return ( + + { + Object.keys(lifecycle).map(state => { + // console.log(lifecycle[lifecycleState].proceedingStates); + const isEnabled = lifecycle[lifecycleState].hasOwnProperty("proceedingStates") && (lifecycle[lifecycleState].proceedingStates.includes(state)); + const color = isEnabled ? "green" : ""; + return ( + {state} + ) + }) + } + + ) + }) + } + + +