Merge pull request #2435 from dpalou/MOBILE-3459

MOBILE-3459 more: Allow disabling QR reader in main menu
This commit is contained in:
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

View File

@ -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');
} }
/** /**