Small fixes
This commit is contained in:
parent
31480de8c1
commit
5479ffdf32
2 changed files with 8 additions and 2 deletions
|
@ -59,6 +59,8 @@ angular.module('quay').directive('tagOperationsDialog', function () {
|
|||
};
|
||||
|
||||
$scope.createOrMoveTag = function(image, tag) {
|
||||
if (!$scope.repository.can_write) { return; }
|
||||
|
||||
$scope.addingTag = true;
|
||||
|
||||
var params = {
|
||||
|
@ -105,7 +107,7 @@ angular.module('quay').directive('tagOperationsDialog', function () {
|
|||
};
|
||||
|
||||
$scope.deleteTag = function(tag, callback, opt_skipmarking) {
|
||||
if (!$scope.repository.can_admin) { return; }
|
||||
if (!$scope.repository.can_write) { return; }
|
||||
|
||||
var params = {
|
||||
'repository': $scope.repository.namespace + '/' + $scope.repository.name,
|
||||
|
|
Reference in a new issue