From 2d3404cd8b6d783d0e27e535b4869871ba891826 Mon Sep 17 00:00:00 2001 From: Felix Gertz Date: Thu, 10 Mar 2016 11:55:28 +0100 Subject: [PATCH] Define ports definitions row mount point for plugins --- .../OptionalPortsAndServiceDiscoveryComponent.jsx | 10 +++++++--- src/js/plugin/shared/PluginMountPoints.js | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/js/components/OptionalPortsAndServiceDiscoveryComponent.jsx b/src/js/components/OptionalPortsAndServiceDiscoveryComponent.jsx index 3e5408797..37bd6ad89 100644 --- a/src/js/components/OptionalPortsAndServiceDiscoveryComponent.jsx +++ b/src/js/components/OptionalPortsAndServiceDiscoveryComponent.jsx @@ -45,7 +45,6 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({ port: null, protocol: ContainerConstants.PORTMAPPINGS.PROTOCOL.TCP, name: null, - labels: null, isRandomPort: true } }, @@ -227,8 +226,6 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({ handleRemoveRow= {this.handleRemoveRow.bind(null, fieldsetId, i)} /> - {error} @@ -236,6 +233,13 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({ }, getPortDefinitionRows: function () { + return null; + + return ( + + ); + var rows = this.state.rows[fieldsetId]; if (rows == null) { diff --git a/src/js/plugin/shared/PluginMountPoints.js b/src/js/plugin/shared/PluginMountPoints.js index b1059c707..ec09ca0c0 100644 --- a/src/js/plugin/shared/PluginMountPoints.js +++ b/src/js/plugin/shared/PluginMountPoints.js @@ -3,7 +3,8 @@ import Util from "../../helpers/Util"; const PluginMountPoints = { "SIDEBAR_BOTTOM": "SIDEBAR_BOTTOM", "NAVBAR_TOP_RIGHT": "NAVBAR_TOP_RIGHT", - "APP_EDIT_FORM_PORTS_PANEL_TITLE": "APP_EDIT_FORM_PORTS_PANEL_TITLE" + "APP_EDIT_FORM_PORTS_PANEL_TITLE": "APP_EDIT_FORM_PORTS_PANEL_TITLE", + "OPTIONAL_PORTS_AND_SERVICE_DISCOVERY": "OPTIONAL_PORTS_AND_SERVICE_DISCOVERY" }; export default Util.fixObject(PluginMountPoints, "PLUGIN_MOUNT_POINTS_");