Add clipboard copy support for the pull command
This commit is contained in:
parent
479e23b09d
commit
c466bca32d
7 changed files with 41 additions and 5 deletions
8
static/js/ZeroClipboard.min.js
vendored
Executable file
8
static/js/ZeroClipboard.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
static/js/ZeroClipboard.swf
Executable file
BIN
static/js/ZeroClipboard.swf
Executable file
Binary file not shown.
|
@ -45,4 +45,4 @@ quayApp.run(['$location', '$rootScope', function($location, $rootScope) {
|
|||
$rootScope.title = current.$$route.title;
|
||||
}
|
||||
});
|
||||
}]);
|
||||
}]);
|
||||
|
|
|
@ -43,6 +43,8 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
|||
$rootScope.title = namespace + '/' + name;
|
||||
$scope.repo = repo;
|
||||
$scope.currentTag = repo.tags[tag] || repo.tags['latest'];
|
||||
|
||||
var clip = new ZeroClipboard($('#copyClipboard'), { 'moviePath': 'static/js/ZeroClipboard.swf' });
|
||||
}, function() {
|
||||
$scope.repo = null;
|
||||
$rootScope.title = 'Unknown Repository';
|
||||
|
|
Reference in a new issue