Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #423 from LiskHQ/422-loading-bar-unsuccessfull-login
Browse files Browse the repository at this point in the history
Fix loading bar after unsuccessfull login - Closes #422
  • Loading branch information
slaweet authored Jun 19, 2017
2 parents 999767f + bb6e727 commit 5893de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/api/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ app.factory('Peers', ($timeout, $cookies, $location, $q, $rootScope, dialog) =>
return this.sendRequestPromise('loader/status', {})
.then(() => {
this.online = true;
$rootScope.$emit('hideLoadingBar', 'connection');
if (this.wasOffline) {
dialog.successToast('Connection re-established');
$rootScope.$emit('hideLoadingBar', 'connection');
}
this.wasOffline = false;
})
Expand Down

0 comments on commit 5893de4

Please sign in to comment.