Fix last modified date time handling for tags with no date times, and fix the sort ordering
This commit is contained in:
		
							parent
							
								
									fe8d006855
								
							
						
					
					
						commit
						699cb9a5da
					
				
					 3 changed files with 13 additions and 5 deletions
				
			
		|  | @ -46,9 +46,10 @@ angular.module('quay').directive('repoPanelTags', function () { | |||
|         for (var tag in $scope.repository.tags) { | ||||
|           if (!$scope.repository.tags.hasOwnProperty(tag)) { continue; } | ||||
| 
 | ||||
|           var tagInfo = $.extend($scope.repository.tags[tag], { | ||||
|           var tagData = $scope.repository.tags[tag]; | ||||
|           var tagInfo = $.extend(tagData, { | ||||
|             'name': tag, | ||||
|             'last_modified_datetime': new Date($scope.repository.tags[tag].last_modified) | ||||
|             'last_modified_datetime': (new Date(tagData.last_modified || 0)).valueOf() * (-1) | ||||
|           }); | ||||
| 
 | ||||
|           allTags.push(tagInfo); | ||||
|  |  | |||
		Reference in a new issue