mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
feat(containers): trim the @sha256 suffix in the image name (#1551)
This commit is contained in:
parent
5787df5599
commit
f57ce8b327
1 changed files with 3 additions and 4 deletions
|
@ -66,7 +66,7 @@ angular.module('portainer.filters')
|
|||
labelStyle = 'primary';
|
||||
} else if (includeString(status, ['running'])) {
|
||||
labelStyle = 'success';
|
||||
}
|
||||
}
|
||||
return labelStyle;
|
||||
};
|
||||
})
|
||||
|
@ -352,7 +352,6 @@ angular.module('portainer.filters')
|
|||
if (imageName.indexOf('sha256:') === 0) {
|
||||
return imageName.substring(7, 19);
|
||||
}
|
||||
return imageName;
|
||||
return _.split(imageName, '@sha256')[0];
|
||||
};
|
||||
})
|
||||
;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue