Add a proper throbber to the repo list table

This commit is contained in:
Joseph Schorr 2015-07-22 16:59:31 -04:00
parent d23965f79b
commit ede9936722
2 changed files with 8 additions and 2 deletions

View file

@ -81,8 +81,13 @@ angular.module('quay').directive('repoListTable', function () {
$scope.$watch('repositoriesResources', function(resources) {
$scope.repositories = [];
$scope.maxPopularity = 0;
$scope.isLoading = false;
resources.forEach(function(resource) {
if (resource.loading) {
$scope.isLoading = true;
}
(resource.value || []).forEach(function(repository) {
var repositoryInfo = $.extend(repository, {
'full_name': repository.namespace + '/' + repository.name,