From 41d73b4d6cdaeb7814d7b3456a3f15ff83df8985 Mon Sep 17 00:00:00 2001 From: ramonornela Date: Sun, 11 Dec 2016 14:06:20 -0200 Subject: [PATCH] fix(loading): fix skip count only in postRequest --- src/providers/loading-ionic.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/providers/loading-ionic.ts b/src/providers/loading-ionic.ts index 18d83e4..3e2579b 100644 --- a/src/providers/loading-ionic.ts +++ b/src/providers/loading-ionic.ts @@ -56,10 +56,6 @@ export class LoadingIonicPlugin extends PluginBase implements PreRequestPlugin, } dismiss() { - if (this.skippedCount) { - return; - } - if (this.allow) { this.loading.dismissAll(); } @@ -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(); } }