From 28235b0553c2ac4d6a0404d97e6100669807d56f Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 29 Sep 2023 10:41:34 +0200 Subject: [PATCH] MOBILE-4362 notes: Update error string to reflect delete action --- src/addons/notes/lang.json | 2 +- src/addons/notes/services/notes-sync.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/notes/lang.json b/src/addons/notes/lang.json index 732140ed1..e2ab32ccc 100644 --- a/src/addons/notes/lang.json +++ b/src/addons/notes/lang.json @@ -10,5 +10,5 @@ "personalnotes": "Personal notes", "publishstate": "Context", "sitenotes": "Site notes", - "warningnotenotsent": "Couldn't add note(s) to course {{course}}. {{error}}" + "warningnotenotsent": "Couldn't add or delete note(s). {{error}}" } diff --git a/src/addons/notes/services/notes-sync.ts b/src/addons/notes/services/notes-sync.ts index 749bb5af6..494ad931c 100644 --- a/src/addons/notes/services/notes-sync.ts +++ b/src/addons/notes/services/notes-sync.ts @@ -231,7 +231,7 @@ export class AddonNotesSyncProvider extends CoreSyncBaseProvider Translate.instant('addon.notes.warningnotenotsent', { - course: 'fullname' in course ? course.fullname : courseId, + course: 'fullname' in course ? course.fullname : courseId, // @deprecated since 4.3. error: error, })); }