MOBILE-2376 siteplugins: Limit main menu plugins priority

main
Dani Palou 2018-05-10 09:19:59 +02:00
parent 12bab491b8
commit e1cb1ad7ec
1 changed files with 2 additions and 1 deletions

View File

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