sync spinner

This commit is contained in:
Mo Bitar
2017-01-02 21:58:02 -06:00
parent e91994d885
commit b2621d0163
6 changed files with 35 additions and 4 deletions

View File

@@ -72,7 +72,11 @@ angular.module('app.frontend')
}
this.refreshData = function() {
this.isRefreshing = true;
apiController.sync(function(response){
$timeout(function(){
this.isRefreshing = false;
}.bind(this), 200)
if(!response) {
alert("There was an error syncing. Please try again. If all else fails, log out and log back in.");
} else {