Skip to content

Commit

Permalink
Define ports definitions row mount point for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aldipower committed Mar 10, 2016
1 parent 497eacc commit 2d3404c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions src/js/components/OptionalPortsAndServiceDiscoveryComponent.jsx
Expand Up @@ -45,7 +45,6 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({
port: null,
protocol: ContainerConstants.PORTMAPPINGS.PROTOCOL.TCP,
name: null,
labels: null,
isRandomPort: true
}
},
Expand Down Expand Up @@ -227,15 +226,20 @@ var OptionalPortsAndServiceDiscoveryComponent = React.createClass({
handleRemoveRow=
{this.handleRemoveRow.bind(null, fieldsetId, i)} />
</div>
<PluginMountPointComponent
placeId={PluginMountPoints.OPTIONAL_PORTS_AND_SERVICE_DISCOVERY} />
</fieldset>
{error}
</div>
);
},

getPortDefinitionRows: function () {
return null;

return (
<PluginMountPointComponent
placeId={PluginMountPoints.OPTIONAL_PORTS_AND_SERVICE_DISCOVERY} />
);

var rows = this.state.rows[fieldsetId];

if (rows == null) {
Expand Down
3 changes: 2 additions & 1 deletion src/js/plugin/shared/PluginMountPoints.js
Expand Up @@ -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_");

0 comments on commit 2d3404c

Please sign in to comment.