diff --git a/src/pages/ota-wizard/ota-wizard.html b/src/pages/ota-wizard/ota-wizard.html index 0ece58a..f4e7bb0 100644 --- a/src/pages/ota-wizard/ota-wizard.html +++ b/src/pages/ota-wizard/ota-wizard.html @@ -35,8 +35,37 @@ + + + + + + + + Automatic mode + + + + {{ ' OTAWIZ.OTAMODESELECTION.AUTOMATIC | translate'}} + + + + + + + Manual mode + + + + {{ ' OTAWIZ.OTAMODESELECTION.MANUAL | translate'}} + + + - + + + + @@ -44,9 +73,7 @@ OTAWIZ.OTAMODE.TITLE - - @@ -62,7 +89,29 @@ - + + + + + + OTAWIZ.OTAMODE.TITLE + + + + + + + + + + + {{ 'OTAWIZ.BTN_NEXT' | translate }} + + + + + + @@ -70,7 +119,6 @@ - OTAWIZ.COMPILATION.GO_ONLINE.TITLE OTAWIZ.COMPILATION.GO_ONLINE.TEXT @@ -83,13 +131,11 @@ - OTAWIZ.COMPILATION.ERROR.TITLE - @@ -97,8 +143,7 @@ OTAWIZ.WIFI.MANUAL.TITLE - - + OTAWIZ.WIFI.MANUAL.TEXT @@ -119,7 +164,6 @@ OTAWIZ.WIFI.AUTO.TEXT3 - OTAWIZ.WIFI.AUTO.AVAILABLE diff --git a/src/pages/ota-wizard/ota-wizard.scss b/src/pages/ota-wizard/ota-wizard.scss index b4c3d9c..5434a3a 100644 --- a/src/pages/ota-wizard/ota-wizard.scss +++ b/src/pages/ota-wizard/ota-wizard.scss @@ -8,7 +8,11 @@ page-ota-wizard { .tutorial_gif { border-radius: 25px; } - + .mode_selection { + font-size:8rem; + color:lightslategray; + margin:10px; + } ion-slide { h4 { margin-bottom: 40px; diff --git a/src/pages/ota-wizard/ota-wizard.ts b/src/pages/ota-wizard/ota-wizard.ts index 7c54b59..b8e3b9c 100644 --- a/src/pages/ota-wizard/ota-wizard.ts +++ b/src/pages/ota-wizard/ota-wizard.ts @@ -44,7 +44,7 @@ export class OtaWizardPage implements OnInit, OnDestroy { private sketch = '' private compiledSketch: ArrayBuffer = undefined private hiddenSlides: OtaSlides[] = [] - + private modus = "manual" private log: LoggingProvider private slideHistory: string[] = [OtaSlides[OtaSlides.Intro]] // for debug info in logs private counts = { compile: 0, connect: 0, upload: 0 } @@ -119,6 +119,19 @@ export class OtaWizardPage implements OnInit, OnDestroy { this.navCtrl.pop() } + toggleManual(){ + if(this.modus === "manual"){ + this.modus = "automatic" + } + else { + this.modus = "manual" + } + } + + activateOta(){ + // Sends request; upon successful response go to next slide (wifi selection) + + } // call logic for each slide onSlideChange () { this.slideHistory.push(OtaSlides[this.currentSlide])
OTAWIZ.COMPILATION.GO_ONLINE.TEXT
OTAWIZ.WIFI.MANUAL.TEXT