From 692b9e87784613c368bc908ff17737cc793c57a4 Mon Sep 17 00:00:00 2001 From: Exkywor Date: Sat, 9 Nov 2019 10:26:56 -0600 Subject: [PATCH] Updated a couple routes to the new api and made small tweaks to the UI --- src/app/app.component.scss | 4 ++++ src/app/components/slides/slides.component.scss | 3 ++- src/app/openlp.service.ts | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.scss b/src/app/app.component.scss index 7df31e0..792f75e 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -1,3 +1,7 @@ +mat-divider { + border-color: rgb(175, 175, 175); +} + mat-sidenav { background: white; } diff --git a/src/app/components/slides/slides.component.scss b/src/app/components/slides/slides.component.scss index c797f82..b532926 100644 --- a/src/app/components/slides/slides.component.scss +++ b/src/app/components/slides/slides.component.scss @@ -3,7 +3,8 @@ mat-card { } .selected { - font-weight: 700; + background-color: rgb(235, 235, 235); + font-weight: 700; } .verse-tag { diff --git a/src/app/openlp.service.ts b/src/app/openlp.service.ts index 0f1897e..15852ae 100644 --- a/src/app/openlp.service.ts +++ b/src/app/openlp.service.ts @@ -45,7 +45,7 @@ export class OpenLPService { else { port = '4316'; } - this.apiURL = `http://${host}:${port}/api/v1`; + this.apiURL = `http://${host}:${port}/api/v2`; this.stateChanged$ = new EventEmitter(); this.retrieveSystemInformation().subscribe(info => { @@ -78,7 +78,7 @@ export class OpenLPService { } getServiceItems(): Observable { - return this.http.get(`${this.apiURL}/service/list`, httpOptions); + return this.http.get(`${this.apiURL}/service/items`, httpOptions); } getSearchablePlugins(): Observable { @@ -86,7 +86,7 @@ export class OpenLPService { } setServiceItem(id: number): Observable { - return this.http.get(`${this.apiURL}/service/set?id=${id}`); + return this.http.post(`${this.apiURL}/service/show`, {'id': id}, httpOptions); } search(plugin, text): Observable {