add function to show slide after its hidden

development
Thiemann96 5 years ago
parent 5b6b1ee568
commit 19521d0302

@ -142,6 +142,7 @@ export class OtaWizardPage implements OnInit, OnDestroy {
showManual() { showManual() {
this.modus = "manual"; this.modus = "manual";
this.showSlide(this.slideWifi);
this.slides.lockSwipeToNext(false); this.slides.lockSwipeToNext(false);
this.slides.slideNext() this.slides.slideNext()
@ -204,6 +205,9 @@ export class OtaWizardPage implements OnInit, OnDestroy {
this.slides.update() this.slides.update()
} }
private showSlide(slide:OtaSlides){
this.hiddenSlides = this.hiddenSlides.filter((hiddenSlide)=>hiddenSlide!=slide)
}
async connectToSensebox(ssid: string) { async connectToSensebox(ssid: string) {
this.counts.connect++ this.counts.connect++
this.state.wifiSelection = 'connecting' this.state.wifiSelection = 'connecting'

Loading…
Cancel
Save