Merge branch 'workingon-themes' into 'master'

Workingon themes

See merge request openlp/web-remote!9
This commit is contained in:
Raoul Snyman 2020-01-29 21:33:02 +00:00
commit a9e62b49d7
2 changed files with 4 additions and 4 deletions

View File

@ -15,4 +15,4 @@
<p style="text-align: center;">Song level theme changing not yet supported.<br> <p style="text-align: center;">Song level theme changing not yet supported.<br>
To continue, change your theme level. To continue, change your theme level.
</p> </p>
</ng-template> </ng-template>

View File

@ -83,7 +83,7 @@ export class OpenLPService {
} }
getThemeLevel(): Observable<any> { getThemeLevel(): Observable<any> {
return this.http.get(`${this.apiURL}/controller/get_theme_level`, httpOptions); return this.http.get(`${this.apiURL}/controller/theme-level`, httpOptions);
} }
getThemes(): Observable<Theme[]> { getThemes(): Observable<Theme[]> {
@ -107,11 +107,11 @@ export class OpenLPService {
} }
setThemeLevel(level): Observable<any> { setThemeLevel(level): Observable<any> {
return this.http.post(`${this.apiURL}/controller/set_theme_level`, {'level': level}, httpOptions); return this.http.post(`${this.apiURL}/controller/theme-level`, {'level': level}, httpOptions);
} }
setTheme(theme: string): Observable<any> { setTheme(theme: string): Observable<any> {
return this.http.post(`${this.apiURL}/controller/theme_change`, {'theme': theme}, httpOptions); return this.http.post(`${this.apiURL}/controller/theme`, {'theme': theme}, httpOptions);
} }
nextItem(): Observable<any> { nextItem(): Observable<any> {