From 5f757d240f644cb7977bf514dfb69b85043e6a31 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 21 Jan 2022 15:22:19 +0100 Subject: [PATCH] MOBILE-3966 core: Reorder user handlers and calendar handler --- src/addons/badges/services/handlers/user.ts | 2 +- src/addons/blog/services/handlers/user.ts | 2 +- src/addons/calendar/services/handlers/mainmenu.ts | 2 +- src/addons/competency/services/handlers/user.ts | 2 +- src/addons/coursecompletion/services/handlers/user.ts | 2 +- src/addons/notes/services/handlers/user.ts | 2 +- src/addons/privatefiles/services/handlers/user.ts | 2 +- src/core/features/grades/services/handlers/user.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/addons/badges/services/handlers/user.ts b/src/addons/badges/services/handlers/user.ts index 21d4363c8..f9f357ce2 100644 --- a/src/addons/badges/services/handlers/user.ts +++ b/src/addons/badges/services/handlers/user.ts @@ -32,7 +32,7 @@ import { AddonBadges } from '../badges'; export class AddonBadgesUserHandlerService implements CoreUserProfileHandler { name = 'AddonBadges:fakename'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext. - priority = 50; + priority = 300; type = CoreUserDelegateService.TYPE_NEW_PAGE; /** diff --git a/src/addons/blog/services/handlers/user.ts b/src/addons/blog/services/handlers/user.ts index 9f221a69b..f2b5e75de 100644 --- a/src/addons/blog/services/handlers/user.ts +++ b/src/addons/blog/services/handlers/user.ts @@ -31,7 +31,7 @@ import { AddonBlog } from '../blog'; export class AddonBlogUserHandlerService implements CoreUserProfileHandler { name = 'AddonBlog'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext. - priority = 300; + priority = 200; type = CoreUserDelegateService.TYPE_NEW_PAGE; /** diff --git a/src/addons/calendar/services/handlers/mainmenu.ts b/src/addons/calendar/services/handlers/mainmenu.ts index 209dc0bb1..74a4cb6e0 100644 --- a/src/addons/calendar/services/handlers/mainmenu.ts +++ b/src/addons/calendar/services/handlers/mainmenu.ts @@ -26,7 +26,7 @@ export class AddonCalendarMainMenuHandlerService implements CoreMainMenuHandler static readonly PAGE_NAME = 'calendar'; name = 'AddonCalendar'; - priority = 800; + priority = 550; /** * Check if the handler is enabled on a site level. diff --git a/src/addons/competency/services/handlers/user.ts b/src/addons/competency/services/handlers/user.ts index c6659d82d..dbae1b0a8 100644 --- a/src/addons/competency/services/handlers/user.ts +++ b/src/addons/competency/services/handlers/user.ts @@ -35,7 +35,7 @@ import { AddonCompetency } from '../competency'; export class AddonCompetencyUserHandlerService implements CoreUserProfileHandler { name = 'AddonCompetency'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext. - priority = 900; + priority = 100; type = CoreUserDelegateService.TYPE_NEW_PAGE; cacheEnabled = true; diff --git a/src/addons/coursecompletion/services/handlers/user.ts b/src/addons/coursecompletion/services/handlers/user.ts index b6a08808c..bfd75dfaa 100644 --- a/src/addons/coursecompletion/services/handlers/user.ts +++ b/src/addons/coursecompletion/services/handlers/user.ts @@ -32,7 +32,7 @@ export class AddonCourseCompletionUserHandlerService implements CoreUserProfileH name = 'AddonCourseCompletion:viewCompletion'; type = CoreUserDelegateService.TYPE_NEW_PAGE; - priority = 200; + priority = 350; cacheEnabled = true; /** diff --git a/src/addons/notes/services/handlers/user.ts b/src/addons/notes/services/handlers/user.ts index 4bad2ad6e..6626ba29b 100644 --- a/src/addons/notes/services/handlers/user.ts +++ b/src/addons/notes/services/handlers/user.ts @@ -32,7 +32,7 @@ import { AddonNotes } from '../notes'; export class AddonNotesUserHandlerService implements CoreUserProfileHandler { name = 'AddonNotes:notes'; - priority = 100; + priority = 250; type = CoreUserDelegateService.TYPE_NEW_PAGE; cacheEnabled = true; diff --git a/src/addons/privatefiles/services/handlers/user.ts b/src/addons/privatefiles/services/handlers/user.ts index d969f6e94..5b18fcb8d 100644 --- a/src/addons/privatefiles/services/handlers/user.ts +++ b/src/addons/privatefiles/services/handlers/user.ts @@ -35,7 +35,7 @@ export class AddonPrivateFilesUserHandlerService implements CoreUserProfileHandl static readonly PAGE_NAME = 'private'; name = 'AddonPrivateFiles'; - priority = 300; + priority = 400; type = CoreUserDelegateService.TYPE_NEW_PAGE; cacheEnabled = true; diff --git a/src/core/features/grades/services/handlers/user.ts b/src/core/features/grades/services/handlers/user.ts index d6c6b5e30..945972f4e 100644 --- a/src/core/features/grades/services/handlers/user.ts +++ b/src/core/features/grades/services/handlers/user.ts @@ -37,7 +37,7 @@ import { makeSingleton } from '@singletons'; export class CoreGradesUserHandlerService implements CoreUserProfileHandler { name = 'CoreGrades'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext. - priority = 400; + priority = 500; type = CoreUserDelegateService.TYPE_NEW_PAGE; cacheEnabled = true;