From e1cb1ad7ecbd57ea53277f05c02d53349316ce1c Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 10 May 2018 09:19:59 +0200 Subject: [PATCH] MOBILE-2376 siteplugins: Limit main menu plugins priority --- src/core/siteplugins/classes/handlers/main-menu-handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/siteplugins/classes/handlers/main-menu-handler.ts b/src/core/siteplugins/classes/handlers/main-menu-handler.ts index d837d7525..09dc3c188 100644 --- a/src/core/siteplugins/classes/handlers/main-menu-handler.ts +++ b/src/core/siteplugins/classes/handlers/main-menu-handler.ts @@ -25,7 +25,8 @@ export class CoreSitePluginsMainMenuHandler extends CoreSitePluginsBaseHandler i protected initResult: any) { super(name); - this.priority = handlerSchema.priority; + // Set 699 as max priority so site plugins are always shown in the More tab (700 is Notifications tab). + this.priority = Math.min(handlerSchema.priority, 699); } /**