1
0
Fork 0

Fixed a bug in cluster dashboard, which made it impossible to view the dashboard for a multi machine cluster. #883

This commit is contained in:
Michael Hackstein 2014-06-04 15:34:24 +02:00
parent 53abe18fe5
commit ba08d7e5fd
2 changed files with 7 additions and 1 deletions

View File

@ -99,7 +99,11 @@
<img src="img/databaseIcon.svg" class="icon svgToReplace"/>
</a>
<% }); %>
<h5 class="collectionName"><%=a%> <%=dbName!==""?"(Shards: <span id=\"" + dbName + "Shards\" class=\"shardCounter\"/>)":""%><a class="button-gui<%=buttonClass(c.get('status'))%>" href="<%=url%>" target="_blank">GUI</a></h5>
<% if (s.coords) { %>
<h5 class="collectionName"><%=a%> <%=dbName!==""?"(Shards: <span id=\"" + dbName + "Shards\" class=\"shardCounter\"/>)":""%><a class="button-gui<%=buttonClass(_.first(s.coords).get('status'))%>" href="<%=url%>" target="_blank">GUI</a></h5>
<% } else { %>
<h5 class="collectionName"><%=a%> <%=dbName!==""?"(Shards: <span id=\"" + dbName + "Shards\" class=\"shardCounter\"/>)":""%></h5>
<% } %>
</li>
<%
});

View File

@ -173,6 +173,8 @@
},
render: function() {
this.knownServers = [];
delete this.hist;
var self = this;
this.listByAddress(function(byAddress) {
if (Object.keys(byAddress).length === 1) {