From bc0d61e3458ac5dcc4e947c33e5022704e1436c1 Mon Sep 17 00:00:00 2001 From: Thiemann96 Date: Fri, 20 Mar 2020 18:17:12 +0100 Subject: [PATCH] lock swipe to next slide in ota mode guide --- src/pages/ota-wizard/ota-wizard.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/ota-wizard/ota-wizard.ts b/src/pages/ota-wizard/ota-wizard.ts index f37413d..1e1c020 100644 --- a/src/pages/ota-wizard/ota-wizard.ts +++ b/src/pages/ota-wizard/ota-wizard.ts @@ -136,12 +136,14 @@ export class OtaWizardPage implements OnInit, OnDestroy { showAutomatic() { this.automatic = true; this.manual = false; + this.slides.lockSwipeToNext(false); this.slides.slideNext() } showManual() { this.manual = true; this.automatic = false; + this.slides.lockSwipeToNext(false); this.slides.slideNext() } @@ -169,6 +171,7 @@ export class OtaWizardPage implements OnInit, OnDestroy { this.requestSuccessful = true; } catch (err) { + this.slides.lockSwipeToNext(true); this.showModal(err); console.log(err) } @@ -179,11 +182,10 @@ export class OtaWizardPage implements OnInit, OnDestroy { // call logic for each slide onSlideChange() { this.slideHistory.push(OtaSlides[this.currentSlide]) - console.log(this.currentSlide) switch (this.currentSlide) { case OtaSlides.Intro: case OtaSlides.Intro2: - this.slides.lockSwipeToNext(false) + this.slides.lockSwipeToNext(true) break case OtaSlides.Compilation: