From 815ef44651d0e4a4e6ad4e23f2e77fb58efbaf73 Mon Sep 17 00:00:00 2001 From: Kenny Lee Sin Cheong <2530351+kleesc@users.noreply.github.com> Date: Wed, 23 Mar 2022 16:15:15 -0400 Subject: [PATCH] ui: remove deprecated docker-image-id references from ui (PROJQUAY-3418) (#1197) Remove docker id references from ui. Tags should now be referencing the manifest it is pointing to. --- static/directives/repo-tag-history.html | 9 ----- static/directives/tag-operations-dialog.html | 17 +++++---- .../directives/repo-view/repo-panel-tags.js | 2 +- .../manifest-link.component.html | 8 +---- static/js/directives/ui/repo-tag-history.js | 13 ++----- .../js/directives/ui/tag-operations-dialog.js | 36 +++++++------------ 6 files changed, 26 insertions(+), 59 deletions(-) diff --git a/static/directives/repo-tag-history.html b/static/directives/repo-tag-history.html index 2aedf5cf7..7ee0a252d 100644 --- a/static/directives/repo-tag-history.html +++ b/static/directives/repo-tag-history.html @@ -40,13 +40,11 @@ was recreated pointing to was created pointing to @@ -56,21 +54,17 @@ was moved to from was reverted to from @@ -90,19 +84,16 @@ Restore to Revert to Restore to diff --git a/static/directives/tag-operations-dialog.html b/static/directives/tag-operations-dialog.html index 70f252249..000fb11fb 100644 --- a/static/directives/tag-operations-dialog.html +++ b/static/directives/tag-operations-dialog.html @@ -47,9 +47,9 @@ -
+ @@ -137,7 +137,7 @@
@@ -148,7 +148,6 @@ Are you sure you want to restore tag {{ restoreTagInfo.tag.name }} to image ?
diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index 1cce0dbef..5fe2374d0 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -373,7 +373,7 @@ angular.module('quay').directive('repoPanelTags', function () { if ($scope.inReadOnlyMode) { return; } - $scope.tagActionHandler.askAddTag(tag.image_id, tag.manifest_digest); + $scope.tagActionHandler.askAddTag(tag.manifest_digest); }; $scope.showLabelEditor = function(tag) { diff --git a/static/js/directives/ui/manifest-link/manifest-link.component.html b/static/js/directives/ui/manifest-link/manifest-link.component.html index d14fc48fd..9408715ee 100644 --- a/static/js/directives/ui/manifest-link/manifest-link.component.html +++ b/static/js/directives/ui/manifest-link/manifest-link.component.html @@ -1,10 +1,4 @@ - V1ID - Manifest SHA256V1 ID