瀏覽代碼

read value from network switch

Carsten Porth 6 年之前
父節點
當前提交
5e65b934a5
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      app/src/pages/write-tweet/write-tweet.html
  2. 2 1
      app/src/pages/write-tweet/write-tweet.ts

+ 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]
     });
   }