From 1650dc0cb44c406ff4448bca395c78065dfab10d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?=
Date: Tue, 11 May 2021 09:36:26 +0200
Subject: [PATCH] MOBILE-3749 core: Fix available typo
---
src/addons/badges/pages/issued-badge/issued-badge.html | 4 ++--
.../myoverview/components/myoverview/myoverview.ts | 2 +-
.../components/index/addon-mod-assign-index.html | 4 ++--
src/addons/mod/assign/components/index/index.ts | 6 +++---
.../mod/assign/components/submission/submission.ts | 2 +-
src/addons/mod/assign/services/assign.ts | 4 ++--
src/addons/mod/folder/services/folder.ts | 2 +-
src/addons/mod/forum/services/forum.ts | 8 ++++----
src/addons/mod/page/services/page.ts | 2 +-
src/addons/mod/resource/services/handlers/module.ts | 2 +-
src/core/classes/aria-role-button.ts | 6 +++---
src/core/classes/aria-role-tab.ts | 4 ++--
.../features/course/classes/main-resource-component.ts | 2 +-
.../features/courses/pages/my-courses/my-courses.ts | 2 +-
src/core/features/courses/services/courses.ts | 2 +-
src/core/features/grades/services/grades-helper.ts | 4 ++--
src/core/features/grades/services/grades.ts | 10 +++++-----
src/core/features/settings/services/settings-helper.ts | 2 +-
src/core/services/plugin-file-delegate.ts | 2 +-
19 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/src/addons/badges/pages/issued-badge/issued-badge.html b/src/addons/badges/pages/issued-badge/issued-badge.html
index 451668078..fab2dabc6 100644
--- a/src/addons/badges/pages/issued-badge/issued-badge.html
+++ b/src/addons/badges/pages/issued-badge/issued-badge.html
@@ -121,7 +121,7 @@
-
+
@@ -147,7 +147,7 @@
-
+
diff --git a/src/addons/block/myoverview/components/myoverview/myoverview.ts b/src/addons/block/myoverview/components/myoverview/myoverview.ts
index c2c4fe7c4..182120e83 100644
--- a/src/addons/block/myoverview/components/myoverview/myoverview.ts
+++ b/src/addons/block/myoverview/components/myoverview/myoverview.ts
@@ -347,7 +347,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
if (!newValue || this.courses.allincludinghidden.length <= 0) {
this.filteredCourses = this.courses.allincludinghidden;
} else {
- // Use displayname if avalaible, or fullname if not.
+ // Use displayname if available, or fullname if not.
if (this.courses.allincludinghidden.length > 0 &&
typeof this.courses.allincludinghidden[0].displayname != 'undefined') {
this.filteredCourses = this.courses.allincludinghidden.filter((course) =>
diff --git a/src/addons/mod/assign/components/index/addon-mod-assign-index.html b/src/addons/mod/assign/components/index/addon-mod-assign-index.html
index e26abfe1a..da491f51d 100644
--- a/src/addons/mod/assign/components/index/addon-mod-assign-index.html
+++ b/src/addons/mod/assign/components/index/addon-mod-assign-index.html
@@ -119,8 +119,8 @@
+ [detail]="needsGradingAvailable" [button]="needsGradingAvailable"
+ (click)="goToSubmissionList(needGrading, needsGradingAvailable)">
{{ 'addon.mod_assign.numberofsubmissionsneedgrading' | translate }}
{{ summary.submissionsneedgradingcount }}
diff --git a/src/addons/mod/assign/components/index/index.ts b/src/addons/mod/assign/components/index/index.ts
index 24fb456a9..86da7c0c7 100644
--- a/src/addons/mod/assign/components/index/index.ts
+++ b/src/addons/mod/assign/components/index/index.ts
@@ -65,7 +65,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
lateSubmissions?: string; // Message about late submissions.
showNumbers = true; // Whether to show number of submissions with each status.
summary?: AddonModAssignSubmissionGradingSummary; // The grading summary.
- needsGradingAvalaible = false; // Whether we can see the submissions that need grading.
+ needsGradingAvailable = false; // Whether we can see the submissions that need grading.
groupInfo: CoreGroupInfo = {
groups: [],
@@ -275,7 +275,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
this.summary = submissionStatus.gradingsummary;
if (!this.summary) {
- this.needsGradingAvalaible = false;
+ this.needsGradingAvailable = false;
return;
}
@@ -296,7 +296,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
}
}
- this.needsGradingAvalaible =
+ this.needsGradingAvailable =
(submissionStatus.gradingsummary?.submissionsneedgradingcount || 0) > 0 &&
this.currentSite!.isVersionGreaterEqualThan('3.2');
}
diff --git a/src/addons/mod/assign/components/submission/submission.ts b/src/addons/mod/assign/components/submission/submission.ts
index 827ba257c..e98b0c5a8 100644
--- a/src/addons/mod/assign/components/submission/submission.ts
+++ b/src/addons/mod/assign/components/submission/submission.ts
@@ -1123,7 +1123,7 @@ export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy, Can
) {
if (this.previousAttempt && this.previousAttempt.submission!.plugins &&
this.userSubmission.status == this.statusReopened) {
- // Get latest attempt if avalaible.
+ // Get latest attempt if available.
this.submissionPlugins = this.previousAttempt.submission!.plugins;
} else {
this.submissionPlugins = this.userSubmission.plugins!;
diff --git a/src/addons/mod/assign/services/assign.ts b/src/addons/mod/assign/services/assign.ts
index 72eb9e60e..501865309 100644
--- a/src/addons/mod/assign/services/assign.ts
+++ b/src/addons/mod/assign/services/assign.ts
@@ -849,13 +849,13 @@ export class AddonModAssignProvider {
return this.gradingOfflineEnabled[siteId];
}
- this.gradingOfflineEnabled[siteId] = await CoreGrades.isGradeItemsAvalaible(siteId);
+ this.gradingOfflineEnabled[siteId] = await CoreGrades.isGradeItemsAvailable(siteId);
return this.gradingOfflineEnabled[siteId];
}
/**
- * Outcomes only can be edited if mod_assign_submit_grading_form is avalaible.
+ * Outcomes only can be edited if mod_assign_submit_grading_form is available.
*
* @param siteId Site ID. If not defined, current site.
* @return Promise resolved with true if outcomes edit is enabled, rejected or resolved with false otherwise.
diff --git a/src/addons/mod/folder/services/folder.ts b/src/addons/mod/folder/services/folder.ts
index d2a861557..fd73dcd51 100644
--- a/src/addons/mod/folder/services/folder.ts
+++ b/src/addons/mod/folder/services/folder.ts
@@ -125,7 +125,7 @@ export class AddonModFolderProvider {
/**
* Returns whether or not getFolder WS available or not.
*
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.3
*/
isGetFolderWSAvailable(): boolean {
diff --git a/src/addons/mod/forum/services/forum.ts b/src/addons/mod/forum/services/forum.ts
index c12f4be48..c9ee8c548 100644
--- a/src/addons/mod/forum/services/forum.ts
+++ b/src/addons/mod/forum/services/forum.ts
@@ -321,7 +321,7 @@ export class AddonModForumProvider {
/**
* Returns whether or not getDiscussionPost WS available or not.
*
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.8
*/
isGetDiscussionPostAvailable(): boolean {
@@ -332,7 +332,7 @@ export class AddonModForumProvider {
* Returns whether or not getDiscussionPost WS available or not.
*
* @param site Site. If not defined, current site.
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.7
*/
isGetDiscussionPostsAvailable(site?: CoreSite): boolean {
@@ -344,7 +344,7 @@ export class AddonModForumProvider {
/**
* Returns whether or not deletePost WS available or not.
*
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.8
*/
isDeletePostAvailable(): boolean {
@@ -354,7 +354,7 @@ export class AddonModForumProvider {
/**
* Returns whether or not updatePost WS available or not.
*
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.8
*/
isUpdatePostAvailable(): boolean {
diff --git a/src/addons/mod/page/services/page.ts b/src/addons/mod/page/services/page.ts
index a18111297..42cb139f4 100644
--- a/src/addons/mod/page/services/page.ts
+++ b/src/addons/mod/page/services/page.ts
@@ -127,7 +127,7 @@ export class AddonModPageProvider {
/**
* Returns whether or not getPage WS available or not.
*
- * @return If WS is avalaible.
+ * @return If WS is available.
* @since 3.3
*/
isGetPageWSAvailable(): boolean {
diff --git a/src/addons/mod/resource/services/handlers/module.ts b/src/addons/mod/resource/services/handlers/module.ts
index ea4e3ee50..24590f58a 100644
--- a/src/addons/mod/resource/services/handlers/module.ts
+++ b/src/addons/mod/resource/services/handlers/module.ts
@@ -198,7 +198,7 @@ export class AddonModResourceModuleHandlerService implements CoreCourseModuleHan
}
if (options.showtype) {
- // We should take it from options.filedetails.size if avalaible but it's already translated.
+ // We should take it from options.filedetails.size if available but it's already translated.
extra.push(CoreMimetypeUtils.getMimetypeDescription(file));
}
diff --git a/src/core/classes/aria-role-button.ts b/src/core/classes/aria-role-button.ts
index b55fbc876..db15a0f9a 100644
--- a/src/core/classes/aria-role-button.ts
+++ b/src/core/classes/aria-role-button.ts
@@ -21,7 +21,7 @@ export abstract class CoreAriaRoleButton {
}
/**
- * A11y key functionallity that prevents keyDown events.
+ * A11y key functionality that prevents keyDown events.
*
* @param event Event.
*/
@@ -33,7 +33,7 @@ export abstract class CoreAriaRoleButton {
}
/**
- * A11y key functionallity that translates space and enter keys to click action.
+ * A11y key functionality that translates space and enter keys to click action.
*
* @param event Event.
*/
@@ -47,7 +47,7 @@ export abstract class CoreAriaRoleButton {
}
/**
- * A11y click functionallity.
+ * A11y click functionality.
*
* @param event Event.
*/
diff --git a/src/core/classes/aria-role-tab.ts b/src/core/classes/aria-role-tab.ts
index 12c54b8c6..fcaf1c86b 100644
--- a/src/core/classes/aria-role-tab.ts
+++ b/src/core/classes/aria-role-tab.ts
@@ -21,7 +21,7 @@ export class CoreAriaRoleTab {
}
/**
- * A11y key functionallity that prevents keyDown events.
+ * A11y key functionality that prevents keyDown events.
*
* @param e Event.
*/
@@ -39,7 +39,7 @@ export class CoreAriaRoleTab {
}
/**
- * A11y key functionallity.
+ * A11y key functionality.
*
* Enter or Space: When a tab has focus, activates the tab, causing its associated panel to be displayed.
* Right Arrow: When a tab has focus: Moves focus to the next tab. If focus is on the last tab, moves focus to the first tab.
diff --git a/src/core/features/course/classes/main-resource-component.ts b/src/core/features/course/classes/main-resource-component.ts
index 4aa56ece4..ad336718e 100644
--- a/src/core/features/course/classes/main-resource-component.ts
+++ b/src/core/features/course/classes/main-resource-component.ts
@@ -57,7 +57,7 @@ export class CoreCourseModuleMainResourceComponent implements OnInit, OnDestroy,
loaded = false; // If the component has been loaded.
component?: string; // Component name.
componentId?: number; // Component ID.
- blog?: boolean; // If blog is avalaible.
+ blog?: boolean; // If blog is available.
// Data for context menu.
externalUrl?: string; // External URL to open in browser.
diff --git a/src/core/features/courses/pages/my-courses/my-courses.ts b/src/core/features/courses/pages/my-courses/my-courses.ts
index e23121503..eb5f2d0b8 100644
--- a/src/core/features/courses/pages/my-courses/my-courses.ts
+++ b/src/core/features/courses/pages/my-courses/my-courses.ts
@@ -163,7 +163,7 @@ export class CoreCoursesMyCoursesPage implements OnInit, OnDestroy {
if (!newValue || !this.courses) {
this.filteredCourses = this.courses;
} else {
- // Use displayname if avalaible, or fullname if not.
+ // Use displayname if available, or fullname if not.
if (this.courses.length > 0 && typeof this.courses[0].displayname != 'undefined') {
this.filteredCourses = this.courses.filter((course) => course.displayname!.toLowerCase().indexOf(newValue) > -1);
} else {
diff --git a/src/core/features/courses/services/courses.ts b/src/core/features/courses/services/courses.ts
index 0e4d56c9b..acf54ef00 100644
--- a/src/core/features/courses/services/courses.ts
+++ b/src/core/features/courses/services/courses.ts
@@ -526,7 +526,7 @@ export class CoreCoursesProvider {
response.courses = response.courses.filter((course) => courseIds.indexOf(course.id) >= 0);
}
- // Courses will be sorted using sortorder if avalaible.
+ // Courses will be sorted using sortorder if available.
return response.courses.sort((a, b) => {
if (typeof a.sortorder == 'undefined' && typeof b.sortorder == 'undefined') {
return b.id - a.id;
diff --git a/src/core/features/grades/services/grades-helper.ts b/src/core/features/grades/services/grades-helper.ts
index baf9cfbe8..4f45ee75d 100644
--- a/src/core/features/grades/services/grades-helper.ts
+++ b/src/core/features/grades/services/grades-helper.ts
@@ -471,7 +471,7 @@ export class CoreGradesHelperProvider {
}
// Try to open the module grade directly. Check if it's possible.
- const grades = await CoreGrades.isGradeItemsAvalaible(siteId);
+ const grades = await CoreGrades.isGradeItemsAvailable(siteId);
if (!grades) {
throw new CoreError('No grades found.');
@@ -543,7 +543,7 @@ export class CoreGradesHelperProvider {
const site = await CoreSites.getSite(siteId);
userId = userId || site.getUserId();
- const enabled = await CoreGrades.isGradeItemsAvalaible(siteId);
+ const enabled = await CoreGrades.isGradeItemsAvailable(siteId);
return enabled
? CoreGrades.invalidateCourseGradesItemsData(courseId, userId, groupId, siteId)
diff --git a/src/core/features/grades/services/grades.ts b/src/core/features/grades/services/grades.ts
index 2e40eab8f..42551d176 100644
--- a/src/core/features/grades/services/grades.ts
+++ b/src/core/features/grades/services/grades.ts
@@ -87,7 +87,7 @@ export class CoreGradesProvider {
/**
* Get the grade items for a certain module. Keep in mind that may have more than one item to include outcomes and scales.
- * Fallback function only used if 'gradereport_user_get_grade_items' WS is not avalaible Moodle < 3.2.
+ * Fallback function only used if 'gradereport_user_get_grade_items' WS is not available Moodle < 3.2.
*
* @param courseId ID of the course to get the grades from.
* @param userId ID of the user to get the grades from. If not defined use site's current user.
@@ -109,7 +109,7 @@ export class CoreGradesProvider {
userId = userId || site.getUserId();
- const enabled = await this.isGradeItemsAvalaible(siteId);
+ const enabled = await this.isGradeItemsAvailable(siteId);
if (enabled) {
try {
@@ -340,13 +340,13 @@ export class CoreGradesProvider {
}
/**
- * Returns whether or not WS Grade Items is avalaible.
+ * Returns whether or not WS Grade Items is available.
*
* @param siteId Site ID. If not defined, current site.
- * @return True if ws is avalaible, false otherwise.
+ * @return True if ws is available, false otherwise.
* @since Moodle 3.2
*/
- async isGradeItemsAvalaible(siteId?: string): Promise {
+ async isGradeItemsAvailable(siteId?: string): Promise {
const site = await CoreSites.getSite(siteId);
return site.wsAvailable('gradereport_user_get_grade_items');
diff --git a/src/core/features/settings/services/settings-helper.ts b/src/core/features/settings/services/settings-helper.ts
index 3e020b7d4..e03e147f6 100644
--- a/src/core/features/settings/services/settings-helper.ts
+++ b/src/core/features/settings/services/settings-helper.ts
@@ -449,7 +449,7 @@ export class CoreSettingsHelperProvider {
* Check if device can detect color scheme system preference.
* https://caniuse.com/prefers-color-scheme
*
- * @returns if the color scheme system preference is avalaible.
+ * @returns if the color scheme system preference is available.
*/
canIUsePrefersColorScheme(): boolean {
// The following check will check browser support but system may differ from that.
diff --git a/src/core/services/plugin-file-delegate.ts b/src/core/services/plugin-file-delegate.ts
index 944278ee6..9c566fec0 100644
--- a/src/core/services/plugin-file-delegate.ts
+++ b/src/core/services/plugin-file-delegate.ts
@@ -412,5 +412,5 @@ export type CorePluginFileDownloadableResult = {
*/
export type CoreFileSizeSum = {
size: number; // Sum of file sizes.
- total: boolean; // False if any file size is not avalaible.
+ total: boolean; // False if any file size is not available.
};