1
0
Fork 0

read cluster state from frontendConfiguration

This commit is contained in:
hkernbach 2016-05-20 17:19:58 +02:00
parent 97a8de7ceb
commit c880552759
1 changed files with 6 additions and 4 deletions

View File

@ -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);