Make loading of the tags tab async
This commit is contained in:
parent
9e785ab019
commit
43330bcfad
4 changed files with 16 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
|||
$scope.imagesRequired = false;
|
||||
|
||||
// Tab-enabled counters.
|
||||
$scope.tagsShown = 0;
|
||||
$scope.logsShown = 0;
|
||||
$scope.buildsShown = 0;
|
||||
$scope.settingsShown = 0;
|
||||
|
@ -158,6 +159,12 @@
|
|||
$scope.logsShown++;
|
||||
};
|
||||
|
||||
$scope.showTags = function() {
|
||||
$timeout(function() {
|
||||
$scope.tagsShown = 1;
|
||||
}, 10);
|
||||
};
|
||||
|
||||
$scope.requireImages = function() {
|
||||
// Lazily load the repo's images if this is the first call to a tab
|
||||
// that needs the images.
|
||||
|
|
Reference in a new issue