MOBILE-3749 core: Fix available typo

main
Pau Ferrer Ocaña 2021-05-11 09:36:26 +02:00
parent 6127dac080
commit 1650dc0cb4
19 changed files with 35 additions and 35 deletions

View File

@ -121,7 +121,7 @@
</p> </p>
</ion-label> </ion-label>
</ion-item> </ion-item>
<!-- Criteria (not yet avalaible) --> <!-- Criteria (not yet available) -->
</ion-item-group> </ion-item-group>
<ion-item-group> <ion-item-group>
@ -147,7 +147,7 @@
</p> </p>
</ion-label> </ion-label>
</ion-item> </ion-item>
<!-- Evidence (not yet avalaible) --> <!-- Evidence (not yet available) -->
</ion-item-group> </ion-item-group>
<!-- Endorsement --> <!-- Endorsement -->

View File

@ -347,7 +347,7 @@ export class AddonBlockMyOverviewComponent extends CoreBlockBaseComponent implem
if (!newValue || this.courses.allincludinghidden.length <= 0) { if (!newValue || this.courses.allincludinghidden.length <= 0) {
this.filteredCourses = this.courses.allincludinghidden; this.filteredCourses = this.courses.allincludinghidden;
} else { } else {
// Use displayname if avalaible, or fullname if not. // Use displayname if available, or fullname if not.
if (this.courses.allincludinghidden.length > 0 && if (this.courses.allincludinghidden.length > 0 &&
typeof this.courses.allincludinghidden[0].displayname != 'undefined') { typeof this.courses.allincludinghidden[0].displayname != 'undefined') {
this.filteredCourses = this.courses.allincludinghidden.filter((course) => this.filteredCourses = this.courses.allincludinghidden.filter((course) =>

View File

@ -119,8 +119,8 @@
<!-- Summary of submissions that need grading. --> <!-- Summary of submissions that need grading. -->
<ion-item class="ion-text-wrap" *ngIf="summary && summary.submissionsenabled && !assign.teamsubmission && showNumbers" <ion-item class="ion-text-wrap" *ngIf="summary && summary.submissionsenabled && !assign.teamsubmission && showNumbers"
[detail]="needsGradingAvalaible" [button]="needsGradingAvalaible" [detail]="needsGradingAvailable" [button]="needsGradingAvailable"
(click)="goToSubmissionList(needGrading, needsGradingAvalaible)"> (click)="goToSubmissionList(needGrading, needsGradingAvailable)">
<ion-label><h2>{{ 'addon.mod_assign.numberofsubmissionsneedgrading' | translate }}</h2></ion-label> <ion-label><h2>{{ 'addon.mod_assign.numberofsubmissionsneedgrading' | translate }}</h2></ion-label>
<ion-badge slot="end" color="primary"> <ion-badge slot="end" color="primary">
{{ summary.submissionsneedgradingcount }} {{ summary.submissionsneedgradingcount }}

View File

@ -65,7 +65,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
lateSubmissions?: string; // Message about late submissions. lateSubmissions?: string; // Message about late submissions.
showNumbers = true; // Whether to show number of submissions with each status. showNumbers = true; // Whether to show number of submissions with each status.
summary?: AddonModAssignSubmissionGradingSummary; // The grading summary. 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 = { groupInfo: CoreGroupInfo = {
groups: [], groups: [],
@ -275,7 +275,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
this.summary = submissionStatus.gradingsummary; this.summary = submissionStatus.gradingsummary;
if (!this.summary) { if (!this.summary) {
this.needsGradingAvalaible = false; this.needsGradingAvailable = false;
return; return;
} }
@ -296,7 +296,7 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
} }
} }
this.needsGradingAvalaible = this.needsGradingAvailable =
(submissionStatus.gradingsummary?.submissionsneedgradingcount || 0) > 0 && (submissionStatus.gradingsummary?.submissionsneedgradingcount || 0) > 0 &&
this.currentSite!.isVersionGreaterEqualThan('3.2'); this.currentSite!.isVersionGreaterEqualThan('3.2');
} }

View File

@ -1123,7 +1123,7 @@ export class AddonModAssignSubmissionComponent implements OnInit, OnDestroy, Can
) { ) {
if (this.previousAttempt && this.previousAttempt.submission!.plugins && if (this.previousAttempt && this.previousAttempt.submission!.plugins &&
this.userSubmission.status == this.statusReopened) { this.userSubmission.status == this.statusReopened) {
// Get latest attempt if avalaible. // Get latest attempt if available.
this.submissionPlugins = this.previousAttempt.submission!.plugins; this.submissionPlugins = this.previousAttempt.submission!.plugins;
} else { } else {
this.submissionPlugins = this.userSubmission.plugins!; this.submissionPlugins = this.userSubmission.plugins!;

View File

@ -849,13 +849,13 @@ export class AddonModAssignProvider {
return this.gradingOfflineEnabled[siteId]; return this.gradingOfflineEnabled[siteId];
} }
this.gradingOfflineEnabled[siteId] = await CoreGrades.isGradeItemsAvalaible(siteId); this.gradingOfflineEnabled[siteId] = await CoreGrades.isGradeItemsAvailable(siteId);
return this.gradingOfflineEnabled[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. * @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. * @return Promise resolved with true if outcomes edit is enabled, rejected or resolved with false otherwise.

View File

@ -125,7 +125,7 @@ export class AddonModFolderProvider {
/** /**
* Returns whether or not getFolder WS available or not. * Returns whether or not getFolder WS available or not.
* *
* @return If WS is avalaible. * @return If WS is available.
* @since 3.3 * @since 3.3
*/ */
isGetFolderWSAvailable(): boolean { isGetFolderWSAvailable(): boolean {

View File

@ -321,7 +321,7 @@ export class AddonModForumProvider {
/** /**
* Returns whether or not getDiscussionPost WS available or not. * Returns whether or not getDiscussionPost WS available or not.
* *
* @return If WS is avalaible. * @return If WS is available.
* @since 3.8 * @since 3.8
*/ */
isGetDiscussionPostAvailable(): boolean { isGetDiscussionPostAvailable(): boolean {
@ -332,7 +332,7 @@ export class AddonModForumProvider {
* Returns whether or not getDiscussionPost WS available or not. * Returns whether or not getDiscussionPost WS available or not.
* *
* @param site Site. If not defined, current site. * @param site Site. If not defined, current site.
* @return If WS is avalaible. * @return If WS is available.
* @since 3.7 * @since 3.7
*/ */
isGetDiscussionPostsAvailable(site?: CoreSite): boolean { isGetDiscussionPostsAvailable(site?: CoreSite): boolean {
@ -344,7 +344,7 @@ export class AddonModForumProvider {
/** /**
* Returns whether or not deletePost WS available or not. * Returns whether or not deletePost WS available or not.
* *
* @return If WS is avalaible. * @return If WS is available.
* @since 3.8 * @since 3.8
*/ */
isDeletePostAvailable(): boolean { isDeletePostAvailable(): boolean {
@ -354,7 +354,7 @@ export class AddonModForumProvider {
/** /**
* Returns whether or not updatePost WS available or not. * Returns whether or not updatePost WS available or not.
* *
* @return If WS is avalaible. * @return If WS is available.
* @since 3.8 * @since 3.8
*/ */
isUpdatePostAvailable(): boolean { isUpdatePostAvailable(): boolean {

View File

@ -127,7 +127,7 @@ export class AddonModPageProvider {
/** /**
* Returns whether or not getPage WS available or not. * Returns whether or not getPage WS available or not.
* *
* @return If WS is avalaible. * @return If WS is available.
* @since 3.3 * @since 3.3
*/ */
isGetPageWSAvailable(): boolean { isGetPageWSAvailable(): boolean {

View File

@ -198,7 +198,7 @@ export class AddonModResourceModuleHandlerService implements CoreCourseModuleHan
} }
if (options.showtype) { 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)); extra.push(CoreMimetypeUtils.getMimetypeDescription(file));
} }

View File

@ -21,7 +21,7 @@ export abstract class CoreAriaRoleButton<T = unknown> {
} }
/** /**
* A11y key functionallity that prevents keyDown events. * A11y key functionality that prevents keyDown events.
* *
* @param event Event. * @param event Event.
*/ */
@ -33,7 +33,7 @@ export abstract class CoreAriaRoleButton<T = unknown> {
} }
/** /**
* 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. * @param event Event.
*/ */
@ -47,7 +47,7 @@ export abstract class CoreAriaRoleButton<T = unknown> {
} }
/** /**
* A11y click functionallity. * A11y click functionality.
* *
* @param event Event. * @param event Event.
*/ */

View File

@ -21,7 +21,7 @@ export class CoreAriaRoleTab<T = unknown> {
} }
/** /**
* A11y key functionallity that prevents keyDown events. * A11y key functionality that prevents keyDown events.
* *
* @param e Event. * @param e Event.
*/ */
@ -39,7 +39,7 @@ export class CoreAriaRoleTab<T = unknown> {
} }
/** /**
* A11y key functionallity. * A11y key functionality.
* *
* Enter or Space: When a tab has focus, activates the tab, causing its associated panel to be displayed. * 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. * 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.

View File

@ -57,7 +57,7 @@ export class CoreCourseModuleMainResourceComponent implements OnInit, OnDestroy,
loaded = false; // If the component has been loaded. loaded = false; // If the component has been loaded.
component?: string; // Component name. component?: string; // Component name.
componentId?: number; // Component ID. componentId?: number; // Component ID.
blog?: boolean; // If blog is avalaible. blog?: boolean; // If blog is available.
// Data for context menu. // Data for context menu.
externalUrl?: string; // External URL to open in browser. externalUrl?: string; // External URL to open in browser.

View File

@ -163,7 +163,7 @@ export class CoreCoursesMyCoursesPage implements OnInit, OnDestroy {
if (!newValue || !this.courses) { if (!newValue || !this.courses) {
this.filteredCourses = this.courses; this.filteredCourses = this.courses;
} else { } 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') { if (this.courses.length > 0 && typeof this.courses[0].displayname != 'undefined') {
this.filteredCourses = this.courses.filter((course) => course.displayname!.toLowerCase().indexOf(newValue) > -1); this.filteredCourses = this.courses.filter((course) => course.displayname!.toLowerCase().indexOf(newValue) > -1);
} else { } else {

View File

@ -526,7 +526,7 @@ export class CoreCoursesProvider {
response.courses = response.courses.filter((course) => courseIds.indexOf(course.id) >= 0); 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) => { return response.courses.sort((a, b) => {
if (typeof a.sortorder == 'undefined' && typeof b.sortorder == 'undefined') { if (typeof a.sortorder == 'undefined' && typeof b.sortorder == 'undefined') {
return b.id - a.id; return b.id - a.id;

View File

@ -471,7 +471,7 @@ export class CoreGradesHelperProvider {
} }
// Try to open the module grade directly. Check if it's possible. // 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) { if (!grades) {
throw new CoreError('No grades found.'); throw new CoreError('No grades found.');
@ -543,7 +543,7 @@ export class CoreGradesHelperProvider {
const site = await CoreSites.getSite(siteId); const site = await CoreSites.getSite(siteId);
userId = userId || site.getUserId(); userId = userId || site.getUserId();
const enabled = await CoreGrades.isGradeItemsAvalaible(siteId); const enabled = await CoreGrades.isGradeItemsAvailable(siteId);
return enabled return enabled
? CoreGrades.invalidateCourseGradesItemsData(courseId, userId, groupId, siteId) ? CoreGrades.invalidateCourseGradesItemsData(courseId, userId, groupId, siteId)

View File

@ -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. * 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 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. * @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(); userId = userId || site.getUserId();
const enabled = await this.isGradeItemsAvalaible(siteId); const enabled = await this.isGradeItemsAvailable(siteId);
if (enabled) { if (enabled) {
try { 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. * @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 * @since Moodle 3.2
*/ */
async isGradeItemsAvalaible(siteId?: string): Promise<boolean> { async isGradeItemsAvailable(siteId?: string): Promise<boolean> {
const site = await CoreSites.getSite(siteId); const site = await CoreSites.getSite(siteId);
return site.wsAvailable('gradereport_user_get_grade_items'); return site.wsAvailable('gradereport_user_get_grade_items');

View File

@ -449,7 +449,7 @@ export class CoreSettingsHelperProvider {
* Check if device can detect color scheme system preference. * Check if device can detect color scheme system preference.
* https://caniuse.com/prefers-color-scheme * 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 { canIUsePrefersColorScheme(): boolean {
// The following check will check browser support but system may differ from that. // The following check will check browser support but system may differ from that.

View File

@ -412,5 +412,5 @@ export type CorePluginFileDownloadableResult = {
*/ */
export type CoreFileSizeSum = { export type CoreFileSizeSum = {
size: number; // Sum of file sizes. 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.
}; };