lock swipe to next slide in ota mode guide

development
Thiemann96 5 years ago
parent 8fa93adf37
commit bc0d61e345

@ -136,12 +136,14 @@ export class OtaWizardPage implements OnInit, OnDestroy {
showAutomatic() { showAutomatic() {
this.automatic = true; this.automatic = true;
this.manual = false; this.manual = false;
this.slides.lockSwipeToNext(false);
this.slides.slideNext() this.slides.slideNext()
} }
showManual() { showManual() {
this.manual = true; this.manual = true;
this.automatic = false; this.automatic = false;
this.slides.lockSwipeToNext(false);
this.slides.slideNext() this.slides.slideNext()
} }
@ -169,6 +171,7 @@ export class OtaWizardPage implements OnInit, OnDestroy {
this.requestSuccessful = true; this.requestSuccessful = true;
} }
catch (err) { catch (err) {
this.slides.lockSwipeToNext(true);
this.showModal(err); this.showModal(err);
console.log(err) console.log(err)
} }
@ -179,11 +182,10 @@ export class OtaWizardPage implements OnInit, OnDestroy {
// call logic for each slide // call logic for each slide
onSlideChange() { onSlideChange() {
this.slideHistory.push(OtaSlides[this.currentSlide]) this.slideHistory.push(OtaSlides[this.currentSlide])
console.log(this.currentSlide)
switch (this.currentSlide) { switch (this.currentSlide) {
case OtaSlides.Intro: case OtaSlides.Intro:
case OtaSlides.Intro2: case OtaSlides.Intro2:
this.slides.lockSwipeToNext(false) this.slides.lockSwipeToNext(true)
break break
case OtaSlides.Compilation: case OtaSlides.Compilation:

Loading…
Cancel
Save