fix jukebox form

This commit is contained in:
_Bastler 2021-11-30 19:23:47 +01:00
parent 8900b576a2
commit d49dedd242

View File

@ -1,22 +1,22 @@
<div *ngIf="active"> <div *ngIf="active">
<mat-card> <form (submit)="search()">
<mat-card-header> <mat-card>
<mat-card-title>{{'jukebox' | i18n}}</mat-card-title> <mat-card-header>
</mat-card-header> <mat-card-title>{{'jukebox' | i18n}}</mat-card-title>
<mat-card-content> </mat-card-header>
<form (submit)="search()"> <mat-card-content>
<mat-form-field> <mat-form-field>
<input matInput [formControl]="searchFormControl" placeholder="{{'jukebox.search' | i18n}}"> <input matInput [formControl]="searchFormControl" placeholder="{{'jukebox.search' | i18n}}">
</mat-form-field> </mat-form-field>
</form> </mat-card-content>
</mat-card-content> <mat-card-actions>
<mat-card-actions> <button mat-raised-button type="submit" [disabled]="!searchFormControl.value || timeout > 0 || searchDisabled">
<button mat-raised-button type="submit" [disabled]="!searchFormControl.value || timeout > 0 || searchDisabled"> <mat-icon inline="true">{{'jukebox.search.icon' | i18n}}</mat-icon>
<mat-icon inline="true">{{'jukebox.search.icon' | i18n}}</mat-icon> {{'jukebox.search.submit' | i18n}}
{{'jukebox.search.submit' | i18n}} </button>
</button> </mat-card-actions>
</mat-card-actions> </mat-card>
</mat-card> </form>
<p *ngIf="timeout">{{'jukebox.timeout' | i18n:timeout}}</p> <p *ngIf="timeout">{{'jukebox.timeout' | i18n:timeout}}</p>