MOBILE-3459 more: Allow disabling QR reader in main menu

main
Dani Palou 2020-07-02 11:05:51 +02:00
parent 22266da7a7
commit 81e013b1e7
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ export class CoreMainMenuMorePage implements OnDestroy {
this.updateSiteObserver = eventsProvider.on(CoreEventsProvider.SITE_UPDATED, this.loadSiteInfo.bind(this),
sitesProvider.getCurrentSiteId());
this.loadSiteInfo();
this.showScanQR = this.utils.canScanQR();
this.showScanQR = this.utils.canScanQR() &&
!this.sitesProvider.getCurrentSite().isFeatureDisabled('CoreMainMenuDelegate_QrReader');
}
/**