From 81e013b1e7b3565bd9b34099adf76af27ecd494d Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 2 Jul 2020 11:05:51 +0200 Subject: [PATCH] MOBILE-3459 more: Allow disabling QR reader in main menu --- src/core/mainmenu/pages/more/more.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/mainmenu/pages/more/more.ts b/src/core/mainmenu/pages/more/more.ts index cca0add21..a3b786c07 100644 --- a/src/core/mainmenu/pages/more/more.ts +++ b/src/core/mainmenu/pages/more/more.ts @@ -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'); } /**