mirror of https://gitee.com/bigwinds/arangodb
read cluster state from frontendConfiguration
This commit is contained in:
parent
97a8de7ceb
commit
c880552759
|
@ -124,6 +124,12 @@
|
|||
initFinished: false,
|
||||
|
||||
initialize: function () {
|
||||
|
||||
//check frontend config for global conf settings
|
||||
if (frontendConfig.isCluster === true) {
|
||||
this.isCluster = true;
|
||||
}
|
||||
|
||||
// This should be the only global object
|
||||
window.modalView = new window.ModalView();
|
||||
|
||||
|
@ -143,7 +149,6 @@
|
|||
var callback = function(error, isCoordinator) {
|
||||
self = this;
|
||||
if (isCoordinator === true) {
|
||||
self.isCluster = true;
|
||||
|
||||
self.coordinatorCollection.fetch({
|
||||
success: function() {
|
||||
|
@ -151,9 +156,6 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
self.isCluster = false;
|
||||
}
|
||||
}.bind(this);
|
||||
|
||||
window.isCoordinator(callback);
|
||||
|
|
Loading…
Reference in New Issue