|
|
@@ -1,17 +1,13 @@
|
|
|
-<form (ngSubmit)="search($event)">
|
|
|
- <div>
|
|
|
- <input type="checkbox" name="showMyTracks" [(ngModel)]="showMyTracks" /> Show <em>my</em> tracks
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- Track name: <input type="text" name="nameFilter" [(ngModel)]="nameFilter" />
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button type="submit">Search</button>
|
|
|
- </div>
|
|
|
+<form class="filter-container" (ngSubmit)="search($event)">
|
|
|
+ <mat-checkbox name="showMyTracks" [(ngModel)]="showMyTracks">
|
|
|
+ Show <em>my</em> tracks
|
|
|
+ </mat-checkbox>
|
|
|
+ <mat-form-field appearance="fill">
|
|
|
+ <mat-label>Track name</mat-label>
|
|
|
+ <input matInput name="nameFilter" [(ngModel)]="nameFilter">
|
|
|
+ </mat-form-field>
|
|
|
+ <button type="submit" mat-raised-button color="accent">Search</button>
|
|
|
</form>
|
|
|
-Tracks:
|
|
|
-<ul>
|
|
|
- <li *ngFor="let track of tracks | async"><app-track-list-item [track]="track"></app-track-list-item></li>
|
|
|
-</ul>
|
|
|
+<app-track-list-item *ngFor="let track of tracks | async" [track]="track"></app-track-list-item>
|
|
|
|
|
|
-<button type="button" [disabled]="!hasMore" (click)="loadMore()">More</button>
|
|
|
+<button mat-raised-button color="accent" [disabled]="!hasMore" (click)="loadMore()">More</button>
|