diff --git a/src/addons/badges/services/handlers/user.ts b/src/addons/badges/services/handlers/user.ts
index f9f357ce2..54cf3e552 100644
--- a/src/addons/badges/services/handlers/user.ts
+++ b/src/addons/badges/services/handlers/user.ts
@@ -16,9 +16,9 @@ import { Injectable } from '@angular/core';
import { CoreCourseUserAdminOrNavOptionIndexed } from '@features/courses/services/courses';
import {
CoreUserDelegateContext,
- CoreUserDelegateService,
CoreUserProfileHandler,
CoreUserProfileHandlerData,
+ CoreUserProfileHandlerType,
} from '@features/user/services/user-delegate';
import { CoreNavigator } from '@services/navigator';
import { CoreSites } from '@services/sites';
@@ -33,7 +33,7 @@ export class AddonBadgesUserHandlerService implements CoreUserProfileHandler {
name = 'AddonBadges:fakename'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext.
priority = 300;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
/**
* @inheritdoc
diff --git a/src/addons/blog/services/handlers/user.ts b/src/addons/blog/services/handlers/user.ts
index f2b5e75de..85b81f942 100644
--- a/src/addons/blog/services/handlers/user.ts
+++ b/src/addons/blog/services/handlers/user.ts
@@ -16,7 +16,7 @@ import { Injectable } from '@angular/core';
import {
CoreUserProfileHandler,
CoreUserProfileHandlerData,
- CoreUserDelegateService,
+ CoreUserProfileHandlerType,
CoreUserDelegateContext,
} from '@features/user/services/user-delegate';
import { CoreNavigator } from '@services/navigator';
@@ -32,7 +32,7 @@ export class AddonBlogUserHandlerService implements CoreUserProfileHandler {
name = 'AddonBlog'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext.
priority = 200;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
/**
* @inheritdoc
diff --git a/src/addons/competency/services/handlers/user.ts b/src/addons/competency/services/handlers/user.ts
index dbae1b0a8..9cd7df793 100644
--- a/src/addons/competency/services/handlers/user.ts
+++ b/src/addons/competency/services/handlers/user.ts
@@ -18,7 +18,7 @@ import { COURSE_PAGE_NAME } from '@features/course/course.module';
import { CoreUserProfile } from '@features/user/services/user';
import {
CoreUserProfileHandler,
- CoreUserDelegateService,
+ CoreUserProfileHandlerType,
CoreUserProfileHandlerData,
CoreUserDelegateContext,
} from '@features/user/services/user-delegate';
@@ -36,7 +36,7 @@ export class AddonCompetencyUserHandlerService implements CoreUserProfileHandler
name = 'AddonCompetency'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext.
priority = 100;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
cacheEnabled = true;
/**
diff --git a/src/addons/coursecompletion/services/handlers/user.ts b/src/addons/coursecompletion/services/handlers/user.ts
index a31b5dc44..322274482 100644
--- a/src/addons/coursecompletion/services/handlers/user.ts
+++ b/src/addons/coursecompletion/services/handlers/user.ts
@@ -16,7 +16,7 @@ import { Injectable } from '@angular/core';
import { CoreUserProfile } from '@features/user/services/user';
import {
CoreUserProfileHandler,
- CoreUserDelegateService,
+ CoreUserProfileHandlerType,
CoreUserProfileHandlerData,
CoreUserDelegateContext,
} from '@features/user/services/user-delegate';
@@ -31,7 +31,7 @@ import { AddonCourseCompletion } from '../coursecompletion';
export class AddonCourseCompletionUserHandlerService implements CoreUserProfileHandler {
name = 'AddonCourseCompletion:viewCompletion';
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
priority = 350;
cacheEnabled = true;
diff --git a/src/addons/messages/services/handlers/user-send-message.ts b/src/addons/messages/services/handlers/user-send-message.ts
index b7a677645..d217fe580 100644
--- a/src/addons/messages/services/handlers/user-send-message.ts
+++ b/src/addons/messages/services/handlers/user-send-message.ts
@@ -15,7 +15,11 @@
import { Injectable } from '@angular/core';
import { Params } from '@angular/router';
import { CoreUserProfile } from '@features/user/services/user';
-import { CoreUserDelegateService, CoreUserProfileHandler, CoreUserProfileHandlerData } from '@features/user/services/user-delegate';
+import {
+ CoreUserProfileHandlerType,
+ CoreUserProfileHandler,
+ CoreUserProfileHandlerData,
+} from '@features/user/services/user-delegate';
import { CoreNavigator } from '@services/navigator';
import { CoreSites } from '@services/sites';
import { makeSingleton } from '@singletons';
@@ -29,7 +33,7 @@ export class AddonMessagesSendMessageUserHandlerService implements CoreUserProfi
name = 'AddonMessages:sendMessage';
priority = 1000;
- type = CoreUserDelegateService.TYPE_COMMUNICATION;
+ type = CoreUserProfileHandlerType.BUTTON;
/**
* @inheritdoc
diff --git a/src/addons/notes/services/handlers/user.ts b/src/addons/notes/services/handlers/user.ts
index 6626ba29b..399e37310 100644
--- a/src/addons/notes/services/handlers/user.ts
+++ b/src/addons/notes/services/handlers/user.ts
@@ -16,7 +16,7 @@ import { Injectable } from '@angular/core';
import { CoreUserProfile } from '@features/user/services/user';
import {
CoreUserProfileHandler,
- CoreUserDelegateService,
+ CoreUserProfileHandlerType,
CoreUserProfileHandlerData,
CoreUserDelegateContext,
} from '@features/user/services/user-delegate';
@@ -33,7 +33,7 @@ export class AddonNotesUserHandlerService implements CoreUserProfileHandler {
name = 'AddonNotes:notes';
priority = 250;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
cacheEnabled = true;
/**
diff --git a/src/addons/privatefiles/services/handlers/user.ts b/src/addons/privatefiles/services/handlers/user.ts
index 5aad0dd54..81387cdea 100644
--- a/src/addons/privatefiles/services/handlers/user.ts
+++ b/src/addons/privatefiles/services/handlers/user.ts
@@ -18,7 +18,7 @@ import { AddonPrivateFiles } from '@addons/privatefiles/services/privatefiles';
import { makeSingleton } from '@singletons';
import {
CoreUserDelegateContext,
- CoreUserDelegateService,
+ CoreUserProfileHandlerType,
CoreUserProfileHandler,
CoreUserProfileHandlerData,
} from '@features/user/services/user-delegate';
@@ -36,7 +36,7 @@ export class AddonPrivateFilesUserHandlerService implements CoreUserProfileHandl
name = 'AddonPrivateFiles';
priority = 400;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
cacheEnabled = true;
/**
diff --git a/src/core/features/dataprivacy/services/handlers/user.ts b/src/core/features/dataprivacy/services/handlers/user.ts
index fbb6bcd3f..60698c03d 100644
--- a/src/core/features/dataprivacy/services/handlers/user.ts
+++ b/src/core/features/dataprivacy/services/handlers/user.ts
@@ -13,7 +13,11 @@
// limitations under the License.
import { Injectable } from '@angular/core';
-import { CoreUserDelegateService, CoreUserProfileHandler, CoreUserProfileHandlerData } from '@features/user/services/user-delegate';
+import {
+ CoreUserProfileHandlerType,
+ CoreUserProfileHandler,
+ CoreUserProfileHandlerData,
+} from '@features/user/services/user-delegate';
import { CoreNavigator } from '@services/navigator';
import { makeSingleton } from '@singletons';
import { CoreDataPrivacy } from '../dataprivacy';
@@ -27,7 +31,7 @@ export class CoreDataPrivacyUserHandlerService implements CoreUserProfileHandler
protected pageName = CORE_DATAPRIVACY_PAGE_NAME;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ACCOUNT_ITEM;
name = 'CoreDataPrivacyDelegate';
priority = 100;
diff --git a/src/core/features/grades/services/handlers/user.ts b/src/core/features/grades/services/handlers/user.ts
index ade60adf5..247e255e9 100644
--- a/src/core/features/grades/services/handlers/user.ts
+++ b/src/core/features/grades/services/handlers/user.ts
@@ -19,7 +19,7 @@ import { CoreGrades } from '@features/grades/services/grades';
import { CoreUserProfile } from '@features/user/services/user';
import {
CoreUserDelegateContext,
- CoreUserDelegateService ,
+ CoreUserProfileHandlerType ,
CoreUserProfileHandler,
CoreUserProfileHandlerData,
} from '@features/user/services/user-delegate';
@@ -38,7 +38,7 @@ export class CoreGradesUserHandlerService implements CoreUserProfileHandler {
name = 'CoreGrades'; // This name doesn't match any disabled feature, they'll be checked in isEnabledForContext.
priority = 500;
- type = CoreUserDelegateService.TYPE_NEW_PAGE;
+ type = CoreUserProfileHandlerType.LIST_ITEM;
cacheEnabled = true;
/**
diff --git a/src/core/features/mainmenu/components/user-menu/user-menu.html b/src/core/features/mainmenu/components/user-menu/user-menu.html
index 04bacc312..70b2023c7 100644
--- a/src/core/features/mainmenu/components/user-menu/user-menu.html
+++ b/src/core/features/mainmenu/components/user-menu/user-menu.html
@@ -40,7 +40,7 @@
- {{ handler.title | translate }} {{ 'core.settings.preferences' | translate }}