Skip to content

Commit

Permalink
bugfix/character-comic-list — When request fail, spinner should disap…
Browse files Browse the repository at this point in the history
…pear.
  • Loading branch information
jeandat committed Aug 15, 2016
1 parent 853c832 commit 4259ad4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/character/comic-list/character-comic-list.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
comicService
.findByCharacterId(vm.character.id, {offset: vm.comics.length})
.then(updateList)
.catch(throwErr);
.catch(showErr);

/////////////

Expand All @@ -58,6 +58,11 @@
vm.hasMore = meta && (meta.count + meta.offset) < meta.total;
$scope.$broadcast('scroll.infiniteScrollComplete');
}

function showErr(err){
vm.spinnerVisible = false;
throwErr(err);
}
}

function remove() {
Expand Down

0 comments on commit 4259ad4

Please sign in to comment.