From 7fb0c2be4788dcc39554d63d34285389772a369f Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 27 Mar 2023 17:00:14 +0200 Subject: [PATCH 1/3] MOBILE-4270 chore: Standardize edit icons --- src/addons/calendar/pages/event/event.html | 2 +- .../mod/data/components/action/addon-mod-data-action.html | 2 +- src/addons/mod/wiki/components/index/addon-mod-wiki-index.html | 2 +- .../mod/workshop/components/index/addon-mod-workshop-index.html | 2 +- src/addons/mod/workshop/pages/submission/submission.html | 2 +- src/assets/fonts/font-awesome/aliases.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/addons/calendar/pages/event/event.html b/src/addons/calendar/pages/event/event.html index ffa4f87a9..9657c471a 100644 --- a/src/addons/calendar/pages/event/event.html +++ b/src/addons/calendar/pages/event/event.html @@ -16,7 +16,7 @@ [iconAction]="syncIcon" [closeOnClick]="false"> + [content]="'core.edit' | translate" (action)="openEdit()" iconAction="fas-pen"> 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 7f1df86da..e8688a7ac 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 @@ -3,7 +3,7 @@ - + + iconAction="fas-pen" (action)="goToEditPage()"> diff --git a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html index 7bd625917..8d486e1bf 100644 --- a/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html +++ b/src/addons/mod/workshop/components/index/addon-mod-workshop-index.html @@ -220,7 +220,7 @@ - + {{ 'addon.mod_workshop.editsubmission' | translate }} diff --git a/src/addons/mod/workshop/pages/submission/submission.html b/src/addons/mod/workshop/pages/submission/submission.html index e7793e5a2..b435c4d83 100644 --- a/src/addons/mod/workshop/pages/submission/submission.html +++ b/src/addons/mod/workshop/pages/submission/submission.html @@ -33,7 +33,7 @@ - + {{ 'addon.mod_workshop.editsubmission' | translate }} diff --git a/src/assets/fonts/font-awesome/aliases.json b/src/assets/fonts/font-awesome/aliases.json index b18c8f7f6..62d54e2d0 100644 --- a/src/assets/fonts/font-awesome/aliases.json +++ b/src/assets/fonts/font-awesome/aliases.json @@ -139,7 +139,7 @@ "drivers-license": "id-card", "earth-america": "earth-americas", "earth": "earth-americas", - "edit": "pen-to-square", + "edit": "pen", "ellipsis-h": "ellipsis", "ellipsis-v": "ellipsis-vertical", "envelope-square": "square-envelope", From 479dac66a19debcc50d230e1e779112a75ea63b8 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 30 Mar 2023 16:17:28 +0200 Subject: [PATCH 2/3] MOBILE-4270 data: Catch errors when deleting --- src/addons/mod/data/services/data-helper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/addons/mod/data/services/data-helper.ts b/src/addons/mod/data/services/data-helper.ts index 52b822c95..40751a9c5 100644 --- a/src/addons/mod/data/services/data-helper.ts +++ b/src/addons/mod/data/services/data-helper.ts @@ -714,7 +714,9 @@ export class AddonModDataHelperProvider { courseId = await this.getActivityCourseIdIfNotSet(dataId, courseId, siteId); } - AddonModData.deleteEntry(dataId, entryId, courseId!, siteId); + if (courseId) { + await AddonModData.deleteEntry(dataId, entryId, courseId, siteId); + } } catch (message) { CoreDomUtils.showErrorModalDefault(message, 'addon.mod_data.errordeleting', true); From 247b85c791d6e2f7a8e9f45680fe7bc563e0cf1d Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 22 Mar 2023 10:55:17 +0100 Subject: [PATCH 3/3] MOBILE-4065 chore: Update ionic patch version --- patches/{@ionic+core+5.9.2.patch => @ionic+core+5.9.4.patch} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename patches/{@ionic+core+5.9.2.patch => @ionic+core+5.9.4.patch} (100%) diff --git a/patches/@ionic+core+5.9.2.patch b/patches/@ionic+core+5.9.4.patch similarity index 100% rename from patches/@ionic+core+5.9.2.patch rename to patches/@ionic+core+5.9.4.patch