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:
parent
23bff41304
commit
b857970236
4 changed files with 17 additions and 6 deletions
|
@ -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 () {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue