Merge pull request #2435 from dpalou/MOBILE-3459

MOBILE-3459 more: Allow disabling QR reader in main menu
main
Juan Leyva 2020-07-02 12:30:01 +02:00 committed by GitHub
commit 384b047272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
}
/**