mirror of https://gitee.com/bigwinds/arangodb
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:
parent
53abe18fe5
commit
ba08d7e5fd
|
@ -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>
|
||||
<%
|
||||
});
|
||||
|
|
|
@ -173,6 +173,8 @@
|
|||
},
|
||||
|
||||
render: function() {
|
||||
this.knownServers = [];
|
||||
delete this.hist;
|
||||
var self = this;
|
||||
this.listByAddress(function(byAddress) {
|
||||
if (Object.keys(byAddress).length === 1) {
|
||||
|
|
Loading…
Reference in New Issue