Commit d1a04b0d authored by Christopher Fullarton's avatar Christopher Fullarton

Disables the join button in the nickname chooser if no nickname is provided

parent c21247a6
Pipeline #34132 passed with stages
in 15 minutes and 8 seconds
......@@ -10,6 +10,7 @@
maxlength="20"
type="text"/>
<button (click)="joinQuiz()"
[disabled]="!nickname"
class="btn btn-success text-nowrap">
<span *ngIf="!isLoggingIn">{{'component.name_management.join_session' | translate}}</span>
<ng-container *ngIf="isLoggingIn">
......
......@@ -48,7 +48,7 @@ export class NicknameInputComponent implements OnInit, OnDestroy {
}
public async joinQuiz(): Promise<void> {
if (isPlatformServer(this.platformId)) {
if (isPlatformServer(this.platformId) || !this.nickname) {
return;
}
......
......@@ -53,7 +53,7 @@ export class NicknameSelectComponent implements OnInit, OnDestroy {
}
public async joinQuiz(nickname: any): Promise<void> {
if (this.isLoggingIn) {
if (this.isLoggingIn || !nickname) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment