Add refresh button.

pull/2/head
Kevan Ahlquist 9 years ago
parent fe7646e939
commit 2683ddb1ee

@ -1,5 +1,7 @@
<div class="masthead">
<h3 class="text-muted">DockerUI</h3>
<div class="col-xs-11">
<ul class="nav well">
<li><a href="#/">Dashboard</a></li>
<li><a href="#/containers/">Containers</a></li>
@ -10,3 +12,10 @@
<li><a href="#/info/">Info</a></li>
</ul>
</div>
<div class="col-xs-1">
<button class="btn btn-primary" ng-click="refresh()">
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
Refresh
</button>
</div>
</div>

@ -8,4 +8,8 @@ angular.module('masthead', [])
$scope.showNetworksVolumes = true;
}
});
$scope.refresh = function() {
location.reload();
}
}]);

Loading…
Cancel
Save