Have tag ops dialog set the expiration date to the current date for the tag, by default
This commit is contained in:
parent
1d600abc5d
commit
a8b340feb6
2 changed files with 7 additions and 3 deletions
|
@ -18,6 +18,7 @@ angular.module('quay').directive('tagOperationsDialog', function () {
|
|||
},
|
||||
controller: function($scope, $element, $timeout, ApiService) {
|
||||
$scope.addingTag = false;
|
||||
$scope.changeTagsExpirationInfo = null;
|
||||
|
||||
var markChanged = function(added, removed) {
|
||||
// Reload the repository.
|
||||
|
@ -346,9 +347,11 @@ angular.module('quay').directive('tagOperationsDialog', function () {
|
|||
return;
|
||||
}
|
||||
|
||||
$scope.changeTagsExpirationInfo ={
|
||||
var expiration_date = null;
|
||||
expiration_date = tags[0].expiration_date ? tags[0].expiration_date / 1000 : null;
|
||||
$scope.changeTagsExpirationInfo = {
|
||||
'tags': tags,
|
||||
'expiration_date': null
|
||||
'expiration_date': expiration_date
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Reference in a new issue