Skip to content

Commit

Permalink
fix(loading): fix skip count only in postRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Dec 11, 2016
1 parent bd32fb3 commit 41d73b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/providers/loading-ionic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export class LoadingIonicPlugin extends PluginBase implements PreRequestPlugin,
}

dismiss() {
if (this.skippedCount) {
return;
}

if (this.allow) {
this.loading.dismissAll();
}
Expand All @@ -73,7 +69,7 @@ export class LoadingIonicPlugin extends PluginBase implements PreRequestPlugin,
}

postRequest() {
if (this.loading !== null) {
if (this.loading !== null && this.skippedCount === null) {
this.dismiss();
}
}
Expand Down

0 comments on commit 41d73b4

Please sign in to comment.