From: Sohyeon Kim Date: Wed, 4 Sep 2024 08:31:03 +0000 (+0900) Subject: Integrate Feature Group Create and List Page X-Git-Tag: 4.0.0~30^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F13295%2F1;p=portal%2Faiml-dashboard.git Integrate Feature Group Create and List Page Issue-ID: AIMLFW-150 Change-Id: I82d3c9261393ca98c89b59eb264fb83aa45928a4 Signed-off-by: Sohyeon Kim --- diff --git a/src/components/home/status/ListFeatureGroup.js b/src/components/home/status/ListFeatureGroup.js index e3599a3..fec31e1 100644 --- a/src/components/home/status/ListFeatureGroup.js +++ b/src/components/home/status/ListFeatureGroup.js @@ -25,14 +25,18 @@ import axios from 'axios'; import { Checkbox } from './Checkbox'; import Popup from './Popup'; import FeatureGroupInfo from './FeatureGroupInfo'; +import CreateFeatureGroup from '../create/CreateFeatureGroup'; import { deleteFeatureGroups } from './API_STATUS'; const ListFeatureGroup = props => { const logger = props.logger; const [featureGroups, setFeatureGroups] = useState([]); const [infoPopup, setInfoPopup] = useState(false); + const [createPopup, setCreatePopup] = useState(false); const closeInfoPopup = () => setInfoPopup(false); + const closeCreatePopup = () => setCreatePopup(false); const [featureGroupName, setFeatureGroupName] = useState(null); + useEffect(() => { logger('useEffect'); fetchFeatureGroups(); @@ -53,6 +57,11 @@ const ListFeatureGroup = props => { console.error(e); } }; + + const handleCreateClick = () => { + setCreatePopup(true); + }; + const handleInfoClick = featuregroup_name => { console.log('feature group name is : ', featuregroup_name); setFeatureGroupName({ @@ -154,6 +163,9 @@ const ListFeatureGroup = props => { ); return ( <> + {' '} {' '} @@ -180,6 +192,9 @@ const ListFeatureGroup = props => { })} + + +