From d95a9e3c59c72825c743eb2d3fef08eb40f4a0bb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 20 Dec 2017 16:23:17 -0500 Subject: [PATCH] Change tag history revert operation to apply to the *current* entry, rather than the "next" Before this change, the restore operation next to a history entry would bring the tag back to the state *at that entry*, rather than *before that entry*, which is neither the expected behavior, nor allowed for an immediate restore when moving a tag. This fixes the problem. Fixes https://jira.coreos.com/browse/QS-100 --- static/directives/repo-tag-history.html | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/static/directives/repo-tag-history.html b/static/directives/repo-tag-history.html index baf651650..7b4c677d0 100644 --- a/static/directives/repo-tag-history.html +++ b/static/directives/repo-tag-history.html @@ -16,7 +16,7 @@ Tag Change Date/Time - Restore + Revert @@ -85,31 +85,19 @@
- - Restore {{ entry.tag_name }} to - - - - Restore {{ entry.tag_name }} to - - Restore {{ entry.tag_name }} to - - Restore {{ entry.tag_name }} to + + Revert {{ entry.tag_name }} to - + Restore {{ entry.tag_name }} to