1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

feat(ui): replace repository field with tags field in image view (#79)

This commit is contained in:
Anthony Lapenna 2016-07-14 12:02:42 +12:00 committed by GitHub
parent 23bff41304
commit b857970236
4 changed files with 17 additions and 6 deletions

View file

@ -142,17 +142,17 @@ angular.module('dockerui.filters', [])
return _.split(container.Names[0], '/')[1];
};
})
.filter('repotag', function () {
.filter('repotags', function () {
'use strict';
return function (image) {
if (image.RepoTags && image.RepoTags.length > 0) {
var tag = image.RepoTags[0];
if (tag === '<none>:<none>') {
tag = '';
return [];
}
return tag;
return image.RepoTags;
}
return '';
return [];
};
})
.filter('getdate', function () {

View file

@ -1,4 +1,5 @@
function ImageViewModel(data) {
console.log(JSON.stringify(data, null, 4));
this.Id = data.Id;
this.Tag = data.Tag;
this.Repository = data.Repository;