fixing the version check on the bookmarks feature

This commit is contained in:
Rob Petti 2022-11-17 16:08:13 -07:00
parent 33a61f7347
commit 83f52391ae
2 changed files with 11 additions and 11 deletions

View File

@ -73,7 +73,7 @@ export class ManageAccountComponent extends BrowseBase {
private checkIfBookmarksAreAvailable() { private checkIfBookmarksAreAvailable() {
this.toolsService.getInstanceInfo(this.account.info) this.toolsService.getInstanceInfo(this.account.info)
.then((instance: InstanceInfo) => { .then((instance: InstanceInfo) => {
if (instance.major >= 3 && instance.minor >= 1) { if (instance.major == 3 && instance.minor >= 1 || instance.major > 3) {
this.isBookmarksAvailable = true; this.isBookmarksAvailable = true;
} else { } else {
this.isBookmarksAvailable = false; this.isBookmarksAvailable = false;

View File

@ -344,7 +344,7 @@ export class ActionBarComponent implements OnInit, OnDestroy {
private checkIfBookmarksAreAvailable(account: AccountInfo) { private checkIfBookmarksAreAvailable(account: AccountInfo) {
this.toolsService.getInstanceInfo(account) this.toolsService.getInstanceInfo(account)
.then((instance: InstanceInfo) => { .then((instance: InstanceInfo) => {
if (instance.major >= 3 && instance.minor >= 1) { if (instance.major == 3 && instance.minor >= 1 || instance.major > 3) {
this.isBookmarksAvailable = true; this.isBookmarksAvailable = true;
} else { } else {
this.isBookmarksAvailable = false; this.isBookmarksAvailable = false;