Merge pull request #1829 from coreos-inc/timeline-fix
Fix timeline's delete-then-tag display bug
This commit is contained in:
commit
640925e47c
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ angular.module('quay').directive('repoTagHistory', function () {
|
|||
// then the action was a move, rather than a delete and a create.
|
||||
var currentEntries = tagEntries[tagName];
|
||||
var futureEntry = currentEntries.length > 0 ? currentEntries[currentEntries.length - 1] : {};
|
||||
if (tag.end_ts - futureEntry.start_ts <= MOVE_THRESHOLD) {
|
||||
|
||||
if (futureEntry.start_ts - tag.end_ts <= MOVE_THRESHOLD) {
|
||||
removeEntry(futureEntry);
|
||||
addEntry(futureEntry.reversion ? 'revert': 'move', tag.end_ts,
|
||||
futureEntry.docker_image_id, dockerImageId);
|
||||
|
|
Reference in a new issue