From 512dff22d00db4652451034a27f6dfcfa232fc20 Mon Sep 17 00:00:00 2001 From: John Crossman Date: Wed, 28 Jun 2017 14:36:23 -0700 Subject: [PATCH] COL-1069, no 'No assets' msg until NOT isLoading --- public/app/assetlibrary/list/assetLibraryListController.js | 4 ++++ public/app/assetlibrary/list/list.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/app/assetlibrary/list/assetLibraryListController.js b/public/app/assetlibrary/list/assetLibraryListController.js index 745853dd..9100618d 100644 --- a/public/app/assetlibrary/list/assetLibraryListController.js +++ b/public/app/assetlibrary/list/assetLibraryListController.js @@ -46,6 +46,9 @@ 'ready': true }; + // False once getAssets is done + $scope.isLoading = true; + // Variable that will keep track of the scroll position in the list var scrollPosition = 0; @@ -121,6 +124,7 @@ $scope.resultsMessage = utilService.buildSearchResultsMessage('Displaying assets', $scope.searchOptions); } } + $scope.isLoading = false; }); // Ensure that the next page is requested the next time $scope.list.page++; diff --git a/public/app/assetlibrary/list/list.html b/public/app/assetlibrary/list/list.html index 4c013ae6..00eb6d4b 100644 --- a/public/app/assetlibrary/list/list.html +++ b/public/app/assetlibrary/list/list.html @@ -70,7 +70,7 @@ -
+
No matching assets were found.