mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-02-17 11:09:39 +08:00
Merge pull request #198 from realModusOperandi/double-submit
Fix login form creating user twice
This commit is contained in:
commit
b51b836129
@ -34,6 +34,10 @@ export class PlayerComponent implements OnInit {
|
||||
}
|
||||
|
||||
get statusImage() {
|
||||
if (!this.player || !this.player.status) {
|
||||
return '';
|
||||
}
|
||||
|
||||
let status = this.player.status.toLowerCase();
|
||||
if (status === 'none') {
|
||||
return '';
|
||||
|
@ -55,7 +55,7 @@
|
||||
<input type="text" id="username" name="username" [(ngModel)]="username" />
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<button type="submit" id="signin" (click)="loginAsGuest(username)">Sign In As Guest</button>
|
||||
<button type="submit" id="signin">Sign In As Guest</button>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<button type="button" (click)="cancelLogin()">Cancel</button>
|
||||
@ -89,7 +89,7 @@
|
||||
autocapitalize="off" spellcheck="false">
|
||||
</div>
|
||||
<div *ngIf="!isSingleParty" class="form-item">
|
||||
<button type="submit" (click)="joinParty()">Join Party</button>
|
||||
<button type="submit">Join Party</button>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="isFullDevice" class="form-group">
|
||||
|
Loading…
Reference in New Issue
Block a user