bansho/app/app.js
Frédéric Vachon 61c391e3ef Drupal: Added General info to Drupal detailed view
Change-Id: I636ffe3f53768ff5bf8a0977b9127d3bb83faee6
2015-06-25 12:25:23 +00:00

42 lines
1.2 KiB
JavaScript

'use strict';
angular.module('bansho', [
'ngRoute',
'ngCookies',
'angular.filter',
'bansho.config',
'bansho.authentication',
'bansho.utils.promiseManager',
'bansho.topbar',
'bansho.sidebar',
'bansho.surveil',
'bansho.host',
'bansho.service',
'bansho.drupal',
'bansho.drupal.tile',
'bansho.drupal.info',
'bansho.view',
'bansho.view.dashboard',
'bansho.view.singleTable',
'bansho.view.host',
'bansho.view.service',
'bansho.view.drupalDashboard',
'bansho.view.drupal',
'bansho.grafana'
])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.otherwise({redirectTo: '/view'});
}])
// Reinitialise objects on url change
.run(['$rootScope', 'promisesManager', 'reinitTables', 'reinitDrupalTiles', 'reinitDrupalInfo',
function ($rootScope, promisesManager, reinitTables, reinitDrupalTiles, reinitDrupalInfo) {
$rootScope.$on('$locationChangeStart', function () {
reinitTables();
reinitDrupalTiles();
reinitDrupalInfo();
promisesManager.clearAllPromises();
});
}]);