-
Notifications
You must be signed in to change notification settings - Fork 75
/
wireless-connection.component.html
51 lines (44 loc) · 2.14 KB
/
wireless-connection.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="inner-app-container">
<div *ngIf="!isConnected()">
<br>You are not currently connected. You can try entering your quest IP, if Wireless ADB is enabled then it will connect.
<br><br>
<div class="pure-material-button-contained spaced" routerLink="/setup">Open Setup Instructions</div>
<div class="pure-material-button-contained spaced" (click)="wifiConnectModal.openModal()">Enter IP to connect</div>
<br><br>
<ng-container *ngIf="adbService.deviceIp">
Last known device IP: {{adbService.deviceIp}}
</ng-container>
</div>
<div *ngIf="isConnected()">
<div class="screen-description">Enable wifi mode to install apps wirelessly. You must be connected with USB to enable wifi mode.</div>
<div class="pure-material-button-contained spaced" (click)="connectWifi()">Connect</div>
<div class="pure-material-button-contained spaced flat active" (click)="reset()">Reset</div>
<div class="divider divider-margin-top margin-bottom"></div>
<div class="screen-description">After you connect you will see an arrow appear in the top left, at that point you can disconnect the usb cable.</div>
<div class="">
<i class="material-icons large" [ngClass]="{'green-text':adbService.wifiEnabled}">
wifi
</i>
</div>
<div class="screen-description">Device IP: {{adbService.deviceIp}}</div>
</div>
</div>
<mz-modal #wifiConnectModal [fixedFooter]="true">
<mz-modal-header>
<h4>Enter Quest Wifi IP</h4>
</mz-modal-header>
<mz-modal-content>
If you previously enable Wireless ADB on your headset then you can enter the IP to connect here.
<br><br>
<div class="button-section">
<div class="input-field">
<input id="adbCommand" type="text" [(ngModel)]="connectWifiIp" placeholder="IP address like 192.168..." />
</div>
</div>
<br>
</mz-modal-content>
<mz-modal-footer>
<div class="pure-material-button-contained flat active spaced" (click)="wifiConnectModal.closeModal(); ">Close</div>
<div class="pure-material-button-contained spaced" (click)="wifiConnectModal.closeModal(); connectManualWifi()">Connect</div>
</mz-modal-footer>
</mz-modal>