Jelajahi Sumber

read value from network switch

Carsten Porth 5 tahun lalu
induk
melakukan
5e65b934a5

+ 1 - 1
app/src/pages/write-tweet/write-tweet.html

@@ -32,7 +32,7 @@
       
       <span class="network-switch">
           <ion-icon name="logo-twitter"></ion-icon>
-          <ion-toggle checked="false"></ion-toggle>
+          <ion-toggle checked="false" formControlName="p2p"></ion-toggle>
           <ion-icon name="glasses"></ion-icon>
       </span>
 

+ 2 - 1
app/src/pages/write-tweet/write-tweet.ts

@@ -26,7 +26,8 @@ export class WriteTweetPage {
     private twitter: TwitterApiProvider
   ) {
     this.tweet = this.formBuilder.group({
-      text: ['', Validators.maxLength(140)]
+      text: ['', Validators.maxLength(140)],
+      p2p: [false]
     });
   }