From f57ce8b327366474de0b1a7e361d062c3ee41395 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 5 Jan 2018 12:32:53 +0100 Subject: [PATCH] feat(containers): trim the @sha256 suffix in the image name (#1551) --- app/filters/filters.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/filters/filters.js b/app/filters/filters.js index 96042da1e..a30a71f87 100644 --- a/app/filters/filters.js +++ b/app/filters/filters.js @@ -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]; }; -}) -; \ No newline at end of file +});