Show loader when tags are loading instead of empty msg
This commit is contained in:
parent
1cda2e1a62
commit
e61551d6b9
3 changed files with 8 additions and 3 deletions
|
@ -341,7 +341,8 @@
|
|||
<div class="empty-secondary-msg">Try expanding your filtering terms.</div>
|
||||
</div>
|
||||
|
||||
<div class="empty" ng-if="!allTags.length">
|
||||
<div class="cor-loader" ng-show="tagsLoading"></div>
|
||||
<div class="empty" ng-if="!allTags.length && !tagsLoading">
|
||||
<div class="empty-primary-msg">This repository is empty.</div>
|
||||
<div class="empty-secondary-msg">Push a tag or initiate a build to populate this repository.</div>
|
||||
</div>
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
'imageLoader': imageLoader,
|
||||
'builds': null,
|
||||
'historyFilter': '',
|
||||
'repositoryTags': null
|
||||
'repositoryTags': null,
|
||||
'tagsLoading': true
|
||||
};
|
||||
|
||||
$scope.repositoryTags = {};
|
||||
|
@ -77,7 +78,9 @@
|
|||
|
||||
if (resp.has_additional) {
|
||||
loadPaginatedRepositoryTags(page + 1);
|
||||
}
|
||||
} else {
|
||||
$scope.viewScope.tagsLoading = false;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
<div class="repo-panel-tags"
|
||||
repository="viewScope.repository"
|
||||
repository-tags="viewScope.repositoryTags"
|
||||
tags-loading="viewscope.tagsLoading"
|
||||
image-loader="viewScope.imageLoader"
|
||||
selected-tags="viewScope.selectedTags"
|
||||
history-filter="viewScope.historyFilter"
|
||||
|
|
Reference in a new issue