Skip to content

Commit

Permalink
fix(AppVersionComponent): Display networks
Browse files Browse the repository at this point in the history
  • Loading branch information
wavesoft committed May 9, 2017
1 parent 1148c63 commit bf905ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/components/AppVersionComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ var AppVersionComponent = React.createClass({
? <UnspecifiedNodeComponent />
: getHighlightNode(appVersion.portDefinitions);

var networksNode = (appVersion.networks == null)
? <UnspecifiedNodeComponent />
: getHighlightNode(appVersion.networks);

var urisNode = (appVersion.uris == null || appVersion.uris.length === 0)
? <UnspecifiedNodeComponent />
: appVersion.uris.map(function (uri, i) {
Expand Down Expand Up @@ -274,6 +278,8 @@ var AppVersionComponent = React.createClass({
{invalidateValue(appVersion.mem, "MiB")}
<dt>Disk Space</dt>
{invalidateValue(appVersion.disk, "MiB")}
<dt>Networks</dt>
{networksNode}
<dt>Port Definitions</dt>
{portDefinitionsNode}
<dt>Backoff Factor</dt>
Expand Down
1 change: 1 addition & 0 deletions src/js/stores/schemes/appScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const appScheme = {
lastTaskFailure: null,
status: null,
mem: null,
networks: [],
disk: null,
portDefinitions: [],
uris: [],
Expand Down

0 comments on commit bf905ff

Please sign in to comment.