Bug 64 41/441/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Thu, 29 Sep 2016 02:11:09 +0000 (22:11 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Thu, 29 Sep 2016 02:11:09 +0000 (22:11 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx

index ec40ccf..dc40ed6 100644 (file)
@@ -305,8 +305,14 @@ export default class InstantiateInputParams extends Component {
     );
   }
   ipProfilesHTML = (props) => {
+    let vldHasIPprofile = false;
+    props.vlds && props.vlds.map(function(v){
+      if(v.type == 'ip-profile-ref') {
+        vldHasIPprofile = true;
+      }
+    })
     let ipProfileList = props.ipProfileList;
-    return ipProfileList &&
+    return ipProfileList && vldHasIPprofile &&
       (
       <div className="configure-nsd_section">
         <h3 className="launchpadCard_title">IP Profiles</h3>