portainer/app/components/masthead/mastheadController.js

16 lines
473 B
JavaScript
Raw Normal View History

2014-11-12 16:45:13 +00:00
angular.module('masthead', [])
.controller('MastheadController', ['$scope', 'Version', function ($scope, Version) {
$scope.template = 'app/components/masthead/masthead.html';
$scope.showNetworksVolumes = false;
Version.get(function(d) {
if (d.ApiVersion >= 1.21) {
$scope.showNetworksVolumes = true;
}
});
2016-01-11 02:36:22 +00:00
$scope.refresh = function() {
location.reload();
};
}]);