Style buttons, preselt songs in search

This commit is contained in:
Simon Hanna 2018-08-20 14:30:23 +02:00
parent a1db0af862
commit 3a19146d17

View File

@ -27,8 +27,8 @@ template: `
<table> <table>
<tr *ngFor="let item of searchResults"> <tr *ngFor="let item of searchResults">
<td>{{item[1]}}</td> <td>{{item[1]}}</td>
<td><button md-button color="primary" (click)="addToService(item[0])">Add</button></td> <td><button mat-button color="primary" (click)="addToService(item[0])">Add</button></td>
<td><button md-button color="primary" (click)="sendLive(item[0])">Send Live</button></td> <td><button mat-button color="accent" (click)="sendLive(item[0])">Send Live</button></td>
</tr> </tr>
</table> </table>
</div> </div>
@ -42,7 +42,7 @@ export class OpenLPSearchComponent implements OnInit {
public searchPlugins: PluginDescription[] = []; public searchPlugins: PluginDescription[] = [];
public searchText = null; public searchText = null;
public searchResults = null; public searchResults = null;
public selectedPlugin: string; public selectedPlugin: string = "songs";
public currentPlugin: string; public currentPlugin: string;
constructor(private openlpService: OpenLPService) {} constructor(private openlpService: OpenLPService) {}