Get stuff working again

This commit is contained in:
Simon Hanna 2018-08-20 15:25:28 +02:00
parent fc9b13e971
commit 58d1b3698e
5 changed files with 14 additions and 15 deletions

View File

@ -24,7 +24,7 @@ export class OpenLPAlertComponent {
onSubmit() {
console.log('submitted: ', this.alert);
this.openlpService.showAlert(this.alert);
this.openlpService.showAlert(this.alert).subscribe(res => console.log(res));
this.alert = '';
}
}

View File

@ -18,38 +18,37 @@ export class AppComponent {
console.log(result);
});
}
/*
nextItem() {
this.openlpService.nextItem();
this.openlpService.nextItem().subscribe(res => console.log(res));
}
previousItem() {
this.openlpService.previousItem();
this.openlpService.previousItem().subscribe(res => console.log(res));
}
nextSlide() {
this.openlpService.nextSlide();
this.openlpService.nextSlide().subscribe(res => console.log(res));
}
previousSlide() {
this.openlpService.previousSlide();
this.openlpService.previousSlide().subscribe(res => console.log(res));
}
blankDisplay() {
this.openlpService.blankDisplay();
this.openlpService.blankDisplay().subscribe(res => console.log(res));
}
themeDisplay() {
this.openlpService.themeDisplay();
this.openlpService.themeDisplay().subscribe(res => console.log(res));
}
desktopDisplay() {
this.openlpService.desktopDisplay();
this.openlpService.desktopDisplay().subscribe(res => console.log(res));
}
showDisplay() {
this.openlpService.showDisplay();
this.openlpService.showDisplay().subscribe(res => console.log(res));
}
*/
}

View File

@ -54,11 +54,11 @@ export class OpenLPSearchComponent implements OnInit {
}
sendLive(id) {
this.openlpService.sendItemLive(this.currentPlugin, id);
this.openlpService.sendItemLive(this.currentPlugin, id).subscribe(res => console.log(res));
}
addToService(id) {
this.openlpService.addItemToService(this.currentPlugin, id);
this.openlpService.addItemToService(this.currentPlugin, id).subscribe(res => console.log(res));
}
ngOnInit() {

View File

@ -25,7 +25,7 @@ export class OpenLPServiceComponent implements OnInit {
}
onItemSelected(item) {
this.openlpService.setServiceItem(item);
this.openlpService.setServiceItem(item).subscribe(res => console.log(res));
this.router.navigate(['slides']);
}

View File

@ -28,7 +28,7 @@ export class OpenLPSlidesComponent implements OnInit {
}
onSlideSelected(item) {
// this.openlpService.setSlide(item);
this.openlpService.setSlide(item).subscribe(res => console.log(res));
}
getSlides() {