diff --git a/scripts/langindex.json b/scripts/langindex.json
index 308ec401c..4f883c941 100644
--- a/scripts/langindex.json
+++ b/scripts/langindex.json
@@ -522,7 +522,7 @@
"addon.mod_choice.savemychoice": "choice",
"addon.mod_choice.userchoosethisoption": "choice",
"addon.mod_choice.yourselection": "choice",
- "addon.mod_data.actions": "data",
+ "addon.mod_data.actionsmenu": "data",
"addon.mod_data.addentries": "data",
"addon.mod_data.advancedsearch": "data",
"addon.mod_data.alttext": "data",
@@ -2200,6 +2200,7 @@
"core.nopermissionerror": "local_moodlemobileapp",
"core.nopermissions": "error",
"core.nopermissiontoaccesspage": "error",
+ "core.noreplyname": "moodle",
"core.noresults": "moodle",
"core.noselection": "form",
"core.notapplicable": "local_moodlemobileapp",
diff --git a/src/addons/mod/data/components/action/addon-mod-data-action.html b/src/addons/mod/data/components/action/addon-mod-data-action.html
index cf233c3fa..aa4160d05 100644
--- a/src/addons/mod/data/components/action/addon-mod-data-action.html
+++ b/src/addons/mod/data/components/action/addon-mod-data-action.html
@@ -1,5 +1,5 @@
+ [attr.aria-label]="'addon.mod_data.actionsmenu' | translate">
diff --git a/src/addons/mod/data/lang.json b/src/addons/mod/data/lang.json
index e77e2fcd1..d15f18e32 100644
--- a/src/addons/mod/data/lang.json
+++ b/src/addons/mod/data/lang.json
@@ -1,5 +1,5 @@
{
- "actions": "Actions menu",
+ "actionsmenu": "Actions menu",
"addentries": "Add entries",
"advancedsearch": "Advanced search",
"alttext": "Alternative text",
diff --git a/src/addons/notifications/classes/legacy-notifications-source.ts b/src/addons/notifications/classes/legacy-notifications-source.ts
index 564689350..22319ca5f 100644
--- a/src/addons/notifications/classes/legacy-notifications-source.ts
+++ b/src/addons/notifications/classes/legacy-notifications-source.ts
@@ -13,8 +13,10 @@
// limitations under the License.
import { AddonNotificationsNotificationsSource } from '@addons/notifications/classes/notifications-source';
-import { AddonNotificationsGetReadType } from '@addons/notifications/services/notifications';
-import { AddonNotificationsNotificationToRender } from '@addons/notifications/services/notifications-helper';
+import {
+ AddonNotificationsGetReadType,
+ AddonNotificationsNotificationMessageFormatted,
+} from '@addons/notifications/services/notifications';
/**
* Provides a list of notifications using legacy web services.
@@ -25,10 +27,10 @@ export class AddonLegacyNotificationsNotificationsSource extends AddonNotificati
* @inheritdoc
*/
protected async loadPageItems(page: number): Promise<{
- items: AddonNotificationsNotificationToRender[];
+ items: AddonNotificationsNotificationMessageFormatted[];
hasMoreItems: boolean;
}> {
- let items: AddonNotificationsNotificationToRender[] = [];
+ let items: AddonNotificationsNotificationMessageFormatted[] = [];
let hasMoreItems = false;
let pageUnreadCount = 0;
const pageLength = this.getPageLength();
diff --git a/src/addons/notifications/classes/notifications-source.ts b/src/addons/notifications/classes/notifications-source.ts
index 4ff8edb85..033201956 100644
--- a/src/addons/notifications/classes/notifications-source.ts
+++ b/src/addons/notifications/classes/notifications-source.ts
@@ -15,22 +15,23 @@
import {
AddonNotifications,
AddonNotificationsGetReadType,
+ AddonNotificationsNotificationMessageFormatted,
AddonNotificationsProvider,
} from '@addons/notifications/services/notifications';
-import { AddonNotificationsNotificationToRender } from '@addons/notifications/services/notifications-helper';
import { CoreRoutedItemsManagerSource } from '@classes/items-management/routed-items-manager-source';
/**
* Provides a list of notifications.
*/
-export class AddonNotificationsNotificationsSource extends CoreRoutedItemsManagerSource {
+export class AddonNotificationsNotificationsSource
+ extends CoreRoutedItemsManagerSource {
protected totals: Record = {};
/**
* @inheritdoc
*/
- getItemPath(notification: AddonNotificationsNotificationToRender): string {
+ getItemPath(notification: AddonNotificationsNotificationMessageFormatted): string {
return notification.id.toString();
}
@@ -47,7 +48,7 @@ export class AddonNotificationsNotificationsSource extends CoreRoutedItemsManage
* @inheritdoc
*/
protected async loadPageItems(page: number): Promise<{
- items: AddonNotificationsNotificationToRender[];
+ items: AddonNotificationsNotificationMessageFormatted[];
hasMoreItems: boolean;
}> {
const results = await this.loadNotifications(AddonNotificationsGetReadType.BOTH, page * this.getPageLength());
@@ -67,7 +68,7 @@ export class AddonNotificationsNotificationsSource extends CoreRoutedItemsManage
* @returns Notifications and whether there are any more.
*/
protected async loadNotifications(type: AddonNotificationsGetReadType, offset: number, limit?: number): Promise<{
- notifications: AddonNotificationsNotificationToRender[];
+ notifications: AddonNotificationsNotificationMessageFormatted[];
hasMoreNotifications: boolean;
}> {
limit = limit ?? this.getPageLength();
@@ -94,7 +95,7 @@ export class AddonNotificationsNotificationsSource extends CoreRoutedItemsManage
/**
* @inheritdoc
*/
- protected setItems(notifications: AddonNotificationsNotificationToRender[], hasMoreItems: boolean): void {
+ protected setItems(notifications: AddonNotificationsNotificationMessageFormatted[], hasMoreItems: boolean): void {
const sortedNotifications = notifications.slice(0);
sortedNotifications.sort((a, b) => a.timecreated < b.timecreated ? 1 : -1);
diff --git a/src/addons/notifications/notifications.scss b/src/addons/notifications/notifications.scss
index 0583e27fa..2f144dd2a 100644
--- a/src/addons/notifications/notifications.scss
+++ b/src/addons/notifications/notifications.scss
@@ -34,6 +34,9 @@
width: var(--icon-size);
height: var(--icon-size);
}
+ ion-icon {
+ font-size: var(--icon-size);
+ }
padding: 0.7rem;
background: var(--background-color);
border-radius: var(--small-radius);
@@ -43,4 +46,11 @@
--module-icon-size: var(--icon-size);
@include margin(6px, 8px, 6px, 0px);
}
+
+ .core-notification-img {
+ @include margin(6px, 8px, 6px, 0px);
+ width: var(--core-avatar-size);
+ height: var(--core-avatar-size);
+ object-fit: cover;
+ }
}
diff --git a/src/addons/notifications/pages/list/list.html b/src/addons/notifications/pages/list/list.html
index c0ccfd14d..b7f7a5897 100644
--- a/src/addons/notifications/pages/list/list.html
+++ b/src/addons/notifications/pages/list/list.html
@@ -28,21 +28,18 @@
0" [user]="notification" slot="start"
[profileUrl]="notification.profileimageurlfrom" [fullname]="notification.userfromfullname"
[userId]="notification.useridfrom">
-