mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 22:05:23 +02:00
feat(image-details): Show labels in images datatable (#4287)
* feat(images): show labels in images datatable * move labels to image details view
This commit is contained in:
parent
6a504e7134
commit
b9fe8009dd
3 changed files with 13 additions and 1 deletions
|
@ -4,7 +4,6 @@ export function ImageViewModel(data) {
|
|||
this.Repository = data.Repository;
|
||||
this.Created = data.Created;
|
||||
this.Checked = false;
|
||||
|
||||
this.RepoTags = data.RepoTags;
|
||||
if (!this.RepoTags && data.RepoDigests) {
|
||||
this.RepoTags = [];
|
||||
|
@ -21,6 +20,7 @@ export function ImageViewModel(data) {
|
|||
if (data.Portainer && data.Portainer.Agent && data.Portainer.Agent.NodeName) {
|
||||
this.NodeName = data.Portainer.Agent.NodeName;
|
||||
}
|
||||
this.Labels = data.Labels;
|
||||
}
|
||||
|
||||
export function ImageBuildModel(data) {
|
||||
|
|
|
@ -16,4 +16,5 @@ export function ImageDetailsViewModel(data) {
|
|||
this.ExposedPorts = data.ContainerConfig.ExposedPorts ? Object.keys(data.ContainerConfig.ExposedPorts) : [];
|
||||
this.Volumes = data.ContainerConfig.Volumes ? Object.keys(data.ContainerConfig.Volumes) : [];
|
||||
this.Env = data.ContainerConfig.Env ? data.ContainerConfig.Env : [];
|
||||
this.Labels = data.ContainerConfig.Labels;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue