|
@@ -43,16 +43,9 @@ App.MainController = Em.Controller.extend({
|
|
|
* run all processes and cluster's data loading
|
|
|
*/
|
|
|
initialize: function(){
|
|
|
- this.initAdmin();
|
|
|
App.router.get('clusterController').loadClusterData();
|
|
|
this.startPolling();
|
|
|
},
|
|
|
- initAdmin: function(){
|
|
|
- if(App.db && App.db.getUser() && App.db.getUser().admin) {
|
|
|
- App.set('isAdmin', true);
|
|
|
- console.log('Administrator logged in');
|
|
|
- }
|
|
|
- },
|
|
|
|
|
|
dataLoading: function () {
|
|
|
var self = this;
|
|
@@ -96,4 +89,4 @@ App.MainController = Em.Controller.extend({
|
|
|
);
|
|
|
}.observes("App.router.location.lastSetURL", "App.clusterStatus.isInstalled")
|
|
|
|
|
|
-})
|
|
|
+})
|