From fdce0079bed82a0dc22d02a7300cdd6dada9b339 Mon Sep 17 00:00:00 2001 From: Alex Wilmer Date: Thu, 31 Mar 2016 13:29:03 -0400 Subject: [PATCH] fix(app): correct spinner show/hide --- app/scripts/query/query.controllers.ts | 6 +++--- app/scripts/query/templates/query.html | 2 +- app/scripts/search/search.controllers.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/scripts/query/query.controllers.ts b/app/scripts/query/query.controllers.ts index 3fc6286a8..579120173 100755 --- a/app/scripts/query/query.controllers.ts +++ b/app/scripts/query/query.controllers.ts @@ -80,9 +80,6 @@ module ngApp.query.controllers { } refresh() { - this.participantsLoading = true; - this.filesLoading = true; - if (this.tabSwitch) { if (this.QState.tabs.participants.active) { this.QState.setActive("participants", "hasLoadedOnce"); @@ -95,6 +92,9 @@ module ngApp.query.controllers { return; } + this.participantsLoading = true; + this.filesLoading = true; + this.SearchService.getSummary().then((data) => { this.summary = data; }); diff --git a/app/scripts/query/templates/query.html b/app/scripts/query/templates/query.html index e68979a26..39a412fb4 100755 --- a/app/scripts/query/templates/query.html +++ b/app/scripts/query/templates/query.html @@ -8,7 +8,7 @@

-

+

No results found using those filters.

diff --git a/app/scripts/search/search.controllers.ts b/app/scripts/search/search.controllers.ts index 1a513e00b..2d497b93b 100755 --- a/app/scripts/search/search.controllers.ts +++ b/app/scripts/search/search.controllers.ts @@ -105,9 +105,6 @@ module ngApp.search.controllers { } refresh() { - this.filesLoading = true; - this.participantsLoading = true; - if (this.tabSwitch) { if (this.SearchState.tabs.participants.active) { this.SearchState.setActive("tabs", "participants", "hasLoadedOnce"); @@ -120,6 +117,9 @@ module ngApp.search.controllers { return; } + this.filesLoading = true; + this.participantsLoading = true; + this.SearchService.getSummary().then((data) => { this.summary = data; this.tabSwitch = false;