Vincent Fournier c12dec323f Add refresh options in config.json
Change-Id: I1f8082e2de040f820c551b17eb838082e2053d05
2015-07-31 10:43:42 -04:00

17 lines
611 B
JavaScript

'use strict';
angular.module('bansho.view.host', ['bansho.datasource'])
.controller('HostViewCtrl', ['$scope', '$routeParams', 'configManager', 'templateManager',
function ($scope, $routeParams, configManager, templateManager) {
var hostname = $routeParams.host_name;
$scope.components = configManager.getConfigData($scope.viewName).components;
if (!hostname) {
throw new Error("ERROR :'host_name' GET parameter must be set");
} else {
templateManager.setPageParam('hostname', hostname);
}
}]);