mirror of https://gitee.com/bigwinds/arangodb
added mode check
This commit is contained in:
parent
81faa5b08b
commit
8d7d68158e
|
@ -155,6 +155,12 @@
|
|||
this.waitForInit(this.cluster.bind(this));
|
||||
return;
|
||||
}
|
||||
if (!this.isCluster) {
|
||||
this.routes[""] = 'dashboard';
|
||||
this.navigate("#dashboard", {trigger: true});
|
||||
return;
|
||||
}
|
||||
|
||||
this.clusterView = new window.ClusterView({
|
||||
coordinators: this.coordinatorCollection,
|
||||
dbServers: this.dbServers
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<script id="navigationView.ejs" type="text/template">
|
||||
<ul class="navlist arango-collection-ul" id="arangoCollectionUl">
|
||||
<li class="collections-menu"><a id="cluster" class="tab" href="#collections">Cluster</a></li>
|
||||
<li class="collections-menu"><a id="nodes" class="tab" href="#collections">Nodes</a></li>
|
||||
<li class="navbar-spacer big"></li>
|
||||
<% if (isCluster) { %>
|
||||
<li class="collections-menu"><a id="cluster" class="tab" href="#collections">Cluster</a></li>
|
||||
<li class="collections-menu"><a id="nodes" class="tab" href="#collections">Nodes</a></li>
|
||||
<li class="navbar-spacer big"></li>
|
||||
<% } %>
|
||||
<li id="dbSelect" class="dropdown databases-menu"></li>
|
||||
<li class="collections-menu"><a id="collections" class="tab" href="#collections">Collections</a></li>
|
||||
<li class="query-menu"><a id="query" class="tab" href="#query">Queries</a></li>
|
||||
|
|
|
@ -173,6 +173,7 @@
|
|||
|
||||
fillEditor: function() {
|
||||
var toFill = this.removeReadonlyKeys(this.collection.first().attributes);
|
||||
$('.disabledBread').last().text(this.collection.first().get('_key'));
|
||||
this.editor.set(toFill);
|
||||
$('.ace_content').attr('font-size','11pt');
|
||||
},
|
||||
|
|
|
@ -48,7 +48,8 @@
|
|||
var self = this;
|
||||
|
||||
$(this.el).html(this.template.render({
|
||||
currentDB: this.currentDB
|
||||
currentDB: this.currentDB,
|
||||
isCluster: window.App.isCluster
|
||||
}));
|
||||
|
||||
//HEIKO
|
||||
|
|
Loading…
Reference in New Issue