8e643ce5d9
* endpoint/api/repository: limit the number of tags returned - Limit the number of tags returned by /api/v1/repository/<ns:repo> to 500. - Uses the tag history endpoint instead, with an active tag filte. - Update UI to use tag history endpoint instead.
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
(function() {
|
|
/**
|
|
* Create repository notification page.
|
|
*/
|
|
angular.module('quayPages').config(['pages', function(pages) {
|
|
pages.create('create-repository-notification', 'create-repository-notification.html', CreateRepoNotificationCtrl, {
|
|
'newLayout': true,
|
|
'title': 'Create Repo Notification: {{ namespace }}/{{ name }}',
|
|
'description': 'Create repository notification for repository {{ namespace }}/{{ name }}'
|
|
})
|
|
}]);
|
|
|
|
function CreateRepoNotificationCtrl($scope, $routeParams, $location, ApiService) {
|
|
$scope.namespace = $routeParams.namespace;
|
|
$scope.name = $routeParams.name;
|
|
|
|
var loadRepository = function() {
|
|
var params = {
|
|
'repository': $scope.namespace + '/' + $scope.name,
|
|
'includeTags': false
|
|
};
|
|
|
|
$scope.repositoryResource = ApiService.getRepoAsResource(params).get(function(repo) {
|
|
$scope.repository = repo;
|
|
});
|
|
};
|
|
|
|
loadRepository();
|
|
|
|
$scope.notificationCreated = function() {
|
|
$location.url('repository/' + $scope.namespace + '/' + $scope.name + '?tab=settings');
|
|
};
|
|
}
|
|
})();
|