mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 11:32:47 +00:00
Service items are displayed
This commit is contained in:
parent
cebd15c57c
commit
48750470bd
@ -192,12 +192,6 @@ export class OpenLPService {
|
||||
}
|
||||
|
||||
/*
|
||||
search(plugin, text) {
|
||||
return this.http.get('http://localhost:4316/' + plugin + '/search', buildTextParams(text))
|
||||
.toPromise()
|
||||
.then(response => response.json().results.items)
|
||||
.catch(this.handleError);
|
||||
}
|
||||
|
||||
sendItemLive(plugin, id) {
|
||||
this.http.get('http://localhost:4316/' + plugin + '/live', buildNumberParams(id))
|
||||
@ -212,14 +206,5 @@ export class OpenLPService {
|
||||
.then(response => console.log(response))
|
||||
.catch(this.dropError);
|
||||
}
|
||||
|
||||
private dropError(error: any) {
|
||||
console.error('An error occurred', error);
|
||||
}
|
||||
|
||||
private handleError(error: any) {
|
||||
console.error('An error occurred', error);
|
||||
return Promise.reject(error.message || error);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ export class OpenLPServiceComponent implements OnInit {
|
||||
}
|
||||
|
||||
getServiceItems() {
|
||||
// this.openlpService.getServiceItems().then(items => this.items = items);
|
||||
this.openlpService.getServiceItems().subscribe(items => this.items = items);
|
||||
}
|
||||
|
||||
constructor(private openlpService: OpenLPService, private router: Router) {
|
||||
|
Loading…
Reference in New Issue
Block a user