From 852af8bc0ec096878e7aa2fe25fdaea9a6103a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 10 Aug 2022 11:43:55 +0200 Subject: [PATCH] MOBILE-4081 modicon: Fix modicon purpose --- .../addon-block-recentlyaccesseditems.html | 2 +- .../services/recentlyaccesseditems.ts | 3 +++ .../events/addon-block-timeline-events.html | 2 +- .../addon-calendar-upcoming-events.html | 2 +- src/addons/calendar/pages/day/day.html | 2 +- src/addons/calendar/pages/event/event.html | 2 +- .../calendar/services/calendar-helper.ts | 1 + src/addons/calendar/services/calendar.ts | 2 ++ src/core/components/mod-icon/mod-icon.ts | 22 ++++++++++++------- 9 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html index bdab2ad19..2b185a878 100644 --- a/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html +++ b/src/addons/block/recentlyaccesseditems/components/recentlyaccesseditems/addon-block-recentlyaccesseditems.html @@ -16,7 +16,7 @@ + [componentId]="item.cmid" [showAlt]="false" [purpose]="item.purpose"> diff --git a/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts b/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts index 1a1c3c65b..de78e4ea6 100644 --- a/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts +++ b/src/addons/block/recentlyaccesseditems/services/recentlyaccesseditems.ts @@ -103,6 +103,8 @@ export const AddonBlockRecentlyAccessedItems = makeSingleton(AddonBlockRecentlyA /** * Result of WS block_recentlyaccesseditems_get_recent_items. + * + * The most recently accessed activities/resources by the logged user. */ export type AddonBlockRecentlyAccessedItemsItem = { id: number; // Id. @@ -116,6 +118,7 @@ export type AddonBlockRecentlyAccessedItemsItem = { viewurl: string; // Viewurl. courseviewurl: string; // Courseviewurl. icon: string; // Icon. + purpose?: string; // Purpose. @since 4.0 } & AddonBlockRecentlyAccessedItemsItemCalculatedData; /** diff --git a/src/addons/block/timeline/components/events/addon-block-timeline-events.html b/src/addons/block/timeline/components/events/addon-block-timeline-events.html index 4ce38eaa3..3aab6a77b 100644 --- a/src/addons/block/timeline/components/events/addon-block-timeline-events.html +++ b/src/addons/block/timeline/components/events/addon-block-timeline-events.html @@ -23,7 +23,7 @@ {{event.timesort * 1000 | coreFormatDate:"strftimetime24" }} + [modname]="event.modulename" [purpose]="event.purpose"> diff --git a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html index ef63f7816..701ee61b4 100644 --- a/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html +++ b/src/addons/calendar/components/upcoming-events/addon-calendar-upcoming-events.html @@ -8,7 +8,7 @@ + [componentId]="event.instance" [showAlt]="false" [purpose]="event.purpose"> diff --git a/src/addons/calendar/pages/day/day.html b/src/addons/calendar/pages/day/day.html index e126fbfc2..1abcf2c16 100644 --- a/src/addons/calendar/pages/day/day.html +++ b/src/addons/calendar/pages/day/day.html @@ -70,7 +70,7 @@ (click)="gotoEvent(event.id, day)" [class.item-dimmed]="event.ispast" [ngClass]="['addon-calendar-eventtype-'+event.eventtype]" button [detail]="false"> + [modname]="event.modulename" [componentId]="event.instance" [purpose]="event.purpose">