1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/components/masthead/mastheadController.js

16 lines
472 B
JavaScript
Raw Normal View History

2014-11-12 10:45:13 -06: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-10 20:36:22 -06:00
$scope.refresh = function() {
location.reload();
}
}]);