fixing the version check on the bookmarks feature
This commit is contained in:
parent
33a61f7347
commit
83f52391ae
|
@ -73,7 +73,7 @@ export class ManageAccountComponent extends BrowseBase {
|
|||
private checkIfBookmarksAreAvailable() {
|
||||
this.toolsService.getInstanceInfo(this.account.info)
|
||||
.then((instance: InstanceInfo) => {
|
||||
if (instance.major >= 3 && instance.minor >= 1) {
|
||||
if (instance.major == 3 && instance.minor >= 1 || instance.major > 3) {
|
||||
this.isBookmarksAvailable = true;
|
||||
} else {
|
||||
this.isBookmarksAvailable = false;
|
||||
|
|
|
@ -344,7 +344,7 @@ export class ActionBarComponent implements OnInit, OnDestroy {
|
|||
private checkIfBookmarksAreAvailable(account: AccountInfo) {
|
||||
this.toolsService.getInstanceInfo(account)
|
||||
.then((instance: InstanceInfo) => {
|
||||
if (instance.major >= 3 && instance.minor >= 1) {
|
||||
if (instance.major == 3 && instance.minor >= 1 || instance.major > 3) {
|
||||
this.isBookmarksAvailable = true;
|
||||
} else {
|
||||
this.isBookmarksAvailable = false;
|
||||
|
|
Loading…
Reference in New Issue