feat(containers): trim the @sha256 suffix in the image name (#1551)

pull/1552/head
Anthony Lapenna 2018-01-05 12:32:53 +01:00 committed by GitHub
parent 5787df5599
commit f57ce8b327
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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];
};
})
;
});