MOBILE-3459 more: Allow disabling QR reader in main menu
parent
22266da7a7
commit
81e013b1e7
|
@ -67,7 +67,8 @@ export class CoreMainMenuMorePage implements OnDestroy {
|
||||||
this.updateSiteObserver = eventsProvider.on(CoreEventsProvider.SITE_UPDATED, this.loadSiteInfo.bind(this),
|
this.updateSiteObserver = eventsProvider.on(CoreEventsProvider.SITE_UPDATED, this.loadSiteInfo.bind(this),
|
||||||
sitesProvider.getCurrentSiteId());
|
sitesProvider.getCurrentSiteId());
|
||||||
this.loadSiteInfo();
|
this.loadSiteInfo();
|
||||||
this.showScanQR = this.utils.canScanQR();
|
this.showScanQR = this.utils.canScanQR() &&
|
||||||
|
!this.sitesProvider.getCurrentSite().isFeatureDisabled('CoreMainMenuDelegate_QrReader');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue