mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
Fix images repo name
This commit is contained in:
parent
a392c8ec87
commit
27a9e97062
3 changed files with 13 additions and 2 deletions
|
@ -68,6 +68,16 @@ angular.module('dockerui.filters', [])
|
|||
var name = container.Names[0];
|
||||
return name.substring(1, name.length);
|
||||
};
|
||||
})
|
||||
.filter('repotag', function() {
|
||||
return function(image) {
|
||||
if (image.RepoTags && image.RepoTags.length > 0) {
|
||||
var tag = image.RepoTags[0];
|
||||
if (tag == '<none>:<none>') { tag = ''; }
|
||||
return tag;
|
||||
}
|
||||
return '';
|
||||
};
|
||||
})
|
||||
.filter('getdate', function() {
|
||||
return function(data) {
|
||||
|
|
|
@ -5,6 +5,7 @@ function ImageViewModel(data) {
|
|||
this.Repository = data.Repository;
|
||||
this.Created = data.Created;
|
||||
this.Checked = false;
|
||||
this.RepoTags = data.RepoTags;
|
||||
}
|
||||
|
||||
function ContainerViewModel(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue