Add cancel for username page

This commit is contained in:
Liam Westby 2018-04-16 16:18:27 -05:00
parent 36fc5518f3
commit 043f5ef25f
2 changed files with 5 additions and 26 deletions

View File

@ -32,6 +32,9 @@
<div class="form-item">
<button type="button" (click)="loginAsGuest(username)">Sign In</button>
</div>
<div class="form-item">
<button type="button" (click)="cancelLogin()">Cancel</button>
</div>
</div>
</div>

View File

@ -160,31 +160,7 @@ async joinRoundById(roundID: string) {
sessionStorage.removeItem('username');
}
slide() {
switch (this.pane) {
case 'left':
this.pane = 'center';
break;
case 'center':
this.pane = 'right';
break;
case 'right':
this.pane = 'left';
break;
}
}
slideBack() {
switch (this.pane) {
case 'left':
this.pane = 'right';
break;
case 'center':
this.pane = 'left';
break;
case 'right':
this.pane = 'center';
break;
}
cancelLogin() {
this.pane = 'left';
}
}