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() { onSubmit() {
console.log('submitted: ', this.alert); console.log('submitted: ', this.alert);
this.openlpService.showAlert(this.alert); this.openlpService.showAlert(this.alert).subscribe(res => console.log(res));
this.alert = ''; this.alert = '';
} }
} }

View File

@ -18,38 +18,37 @@ export class AppComponent {
console.log(result); console.log(result);
}); });
} }
/*
nextItem() { nextItem() {
this.openlpService.nextItem(); this.openlpService.nextItem().subscribe(res => console.log(res));
} }
previousItem() { previousItem() {
this.openlpService.previousItem(); this.openlpService.previousItem().subscribe(res => console.log(res));
} }
nextSlide() { nextSlide() {
this.openlpService.nextSlide(); this.openlpService.nextSlide().subscribe(res => console.log(res));
} }
previousSlide() { previousSlide() {
this.openlpService.previousSlide(); this.openlpService.previousSlide().subscribe(res => console.log(res));
} }
blankDisplay() { blankDisplay() {
this.openlpService.blankDisplay(); this.openlpService.blankDisplay().subscribe(res => console.log(res));
} }
themeDisplay() { themeDisplay() {
this.openlpService.themeDisplay(); this.openlpService.themeDisplay().subscribe(res => console.log(res));
} }
desktopDisplay() { desktopDisplay() {
this.openlpService.desktopDisplay(); this.openlpService.desktopDisplay().subscribe(res => console.log(res));
} }
showDisplay() { 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) { sendLive(id) {
this.openlpService.sendItemLive(this.currentPlugin, id); this.openlpService.sendItemLive(this.currentPlugin, id).subscribe(res => console.log(res));
} }
addToService(id) { addToService(id) {
this.openlpService.addItemToService(this.currentPlugin, id); this.openlpService.addItemToService(this.currentPlugin, id).subscribe(res => console.log(res));
} }
ngOnInit() { ngOnInit() {

View File

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

View File

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