mirror of
https://gitlab.com/openlp/web-remote.git
synced 2024-12-22 11:32:47 +00:00
Fixing api version checks and 2.2 workaround
This commit is contained in:
parent
5d71d1c3ed
commit
b37470bf5c
@ -48,7 +48,6 @@ export class ChordViewComponent extends StageViewComponent {
|
||||
}
|
||||
|
||||
setNewSlides(slides: Slide[], currentSlide: number): void {
|
||||
super.setNewSlides(slides, currentSlide);
|
||||
if (this.openlpService.assertApiVersionExact(2, 2)) {
|
||||
// API Version 2.2 released on OpenLP 3.0.2 contains a bug on which 'selected' is not set correctly
|
||||
// on Transponse Service Item response.
|
||||
@ -56,6 +55,7 @@ export class ChordViewComponent extends StageViewComponent {
|
||||
slides[currentSlide].selected = true;
|
||||
}
|
||||
}
|
||||
super.setNewSlides(slides, currentSlide);
|
||||
// if this song is already known
|
||||
if (this.songTransposeMap.has(this.serviceItem.id)) {
|
||||
const transposeLevel = this.songTransposeMap.get(this.serviceItem.id);
|
||||
|
@ -76,7 +76,7 @@ export class OpenLPService {
|
||||
}
|
||||
|
||||
assertApiVersionMinimum(version: number, revision: number) {
|
||||
return version >= this.apiVersion && revision >= this.apiRevision;
|
||||
return this.apiVersion >= version && this.apiRevision >= revision;
|
||||
}
|
||||
|
||||
setAuthToken(token: string): void {
|
||||
|
Loading…
Reference in New Issue
Block a user