From 44ed5d94795e6fc9187ce9dfd9ab76f5d08aef80 Mon Sep 17 00:00:00 2001 From: Jeff Morgan Date: Mon, 15 Dec 2014 22:01:29 -0800 Subject: [PATCH] Fixing image tag ordering and rendering --- meteor/client/lib/imageutil.js | 4 ++-- meteor/client/views/dashboard/apps/dashboard-single-app.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meteor/client/lib/imageutil.js b/meteor/client/lib/imageutil.js index 384c1bff64..4aa4548bf5 100644 --- a/meteor/client/lib/imageutil.js +++ b/meteor/client/lib/imageutil.js @@ -291,7 +291,7 @@ ImageUtil.sync = function (callback) { docker: image, buildLogs: [], createdAt: new Date(), - tags: image.RepoTags, + tags: image.RepoTags.sort(), meta: meta }; Images.insert(imageObj); @@ -311,7 +311,7 @@ ImageUtil.sync = function (callback) { if (imageData && imageData.RepoTags) { Images.update(image._id, { $set: { - tags: imageData.RepoTags + tags: imageData.RepoTags.sort() } }); } diff --git a/meteor/client/views/dashboard/apps/dashboard-single-app.html b/meteor/client/views/dashboard/apps/dashboard-single-app.html index 61449e019b..99a4f00725 100755 --- a/meteor/client/views/dashboard/apps/dashboard-single-app.html +++ b/meteor/client/views/dashboard/apps/dashboard-single-app.html @@ -19,7 +19,7 @@ {{/if}} {{/if}} {{name}} - {{displayTags image.tags}} + {{displayTags image.tags ', '}}
{{#if $eq status 'READY'}}