X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FnsCardPanel%2FnsCardPanel.jsx;fp=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FnsCardPanel%2FnsCardPanel.jsx;h=2b9b4c12e6562328199977c2cf6616c8226525a4;hp=0000000000000000000000000000000000000000;hb=e29efc315df33d546237e270470916e26df391d6;hpb=9c5e457509ba5a1822c316635c6308874e61b4b9 diff --git a/skyquake/plugins/launchpad/src/nsCardPanel/nsCardPanel.jsx b/skyquake/plugins/launchpad/src/nsCardPanel/nsCardPanel.jsx new file mode 100644 index 000000000..2b9b4c12e --- /dev/null +++ b/skyquake/plugins/launchpad/src/nsCardPanel/nsCardPanel.jsx @@ -0,0 +1,48 @@ +import React from 'react'; + +import DashboardCard from 'widgets/dashboard_card/dashboard_card.jsx'; +import LaunchpadCard from '../launchpad_card/launchpadCard.jsx'; +import LaunchpadFleetActions from'../launchpadFleetActions'; + +export default class NsCardPanel extends React.Component { + + onCloseCard(nsr_id) { + return () => { + LaunchpadFleetActions.closeNsrCard(nsr_id); + } + } + findNsr(nsrs, nsr_id) { + nsrs.find() + } + render() { + const {nsrs, openedNsrIDs, ...props} = this.props; + return ( + + { + openedNsrIDs.map((nsr_id, index) => { + let nsr = nsrs.find(e => { return e.id == nsr_id; }) + if (nsr) { + return ( + + ); + } + } + ) + } + + ); + } +} +NsCardPanel.defaultProps = { + nsrs: [], + slideno:0 +}