1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

Change image chart sizes

This commit is contained in:
Michael Crosby 2013-09-02 17:08:06 -07:00
parent de18a308c2
commit 3643525126
3 changed files with 7 additions and 4 deletions

View file

@ -304,8 +304,11 @@ function ImageController($scope, $q, $routeParams, $location, Image, Container,
Image.get({id: $routeParams.id}, function(d) {
$scope.image = d;
if ($routeParams.tag) {
var promise = getContainersFromImage($q, Container, $routeParams.tag);
$scope.tag = d.id;
var t = $routeParams.tag;
if (t && t !== ":") {
$scope.tag = t;
var promise = getContainersFromImage($q, Container, t);
promise.then(function(containers) {
var map = {};