forked from CIT/Vmeda.Online
		
	MOBILE-3627 lint: Fix multiple line in the whole code
This commit is contained in:
		
							parent
							
								
									f8a18f4e04
								
							
						
					
					
						commit
						f52e8d2442
					
				@ -20,7 +20,6 @@ import { CoreNavigator } from '@services/navigator';
 | 
			
		||||
import { makeSingleton } from '@singletons';
 | 
			
		||||
import { AddonBadges } from '../badges';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Handler to treat links to user participants page.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -41,7 +41,6 @@ export class AddonBlockRecentlyAccessedItemsComponent extends CoreBlockBaseCompo
 | 
			
		||||
        super('AddonBlockRecentlyAccessedItemsComponent');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Perform the invalidate content function.
 | 
			
		||||
     *
 | 
			
		||||
 | 
			
		||||
@ -77,7 +77,6 @@ export class AddonBlockRecentlyAccessedItemsProvider {
 | 
			
		||||
}
 | 
			
		||||
export const AddonBlockRecentlyAccessedItems = makeSingleton(AddonBlockRecentlyAccessedItemsProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Result of WS block_recentlyaccesseditems_get_recent_items.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -19,7 +19,6 @@ import { CoreCourseComponentsModule } from '@features/course/components/componen
 | 
			
		||||
 | 
			
		||||
import { AddonBlockSiteMainMenuComponent } from './sitemainmenu/sitemainmenu';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    declarations: [
 | 
			
		||||
        AddonBlockSiteMainMenuComponent,
 | 
			
		||||
 | 
			
		||||
@ -139,7 +139,6 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro
 | 
			
		||||
        this.fetchData();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Detect and act upon changes that Angular can’t or won’t detect on its own (objects and arrays).
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
@ -29,7 +29,6 @@ import { AddonCalendarFilter, AddonCalendarEventIcons } from '../../services/cal
 | 
			
		||||
})
 | 
			
		||||
export class AddonCalendarFilterPopoverComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @Input() filter: AddonCalendarFilter = {
 | 
			
		||||
        filtered: false,
 | 
			
		||||
        courseId: -1,
 | 
			
		||||
@ -54,7 +53,6 @@ export class AddonCalendarFilterPopoverComponent implements OnInit {
 | 
			
		||||
            this.types.push(value);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
@ -266,7 +266,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave {
 | 
			
		||||
                    // Ignore errors.
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        if (this.showAll) {
 | 
			
		||||
            // Remove site home from the list of courses.
 | 
			
		||||
            const siteHomeId = CoreSites.getCurrentSiteHomeId();
 | 
			
		||||
@ -285,7 +284,6 @@ export class AddonCalendarEditEventPage implements OnInit, OnDestroy, CanLeave {
 | 
			
		||||
            await Promise.all((courses as CoreEnrolledCourseData[]).map(courseFillterFullname));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // Sort courses by name.
 | 
			
		||||
        this.courses = courses.sort((a, b) => {
 | 
			
		||||
            const compareA = a.fullname.toLowerCase();
 | 
			
		||||
 | 
			
		||||
@ -34,7 +34,6 @@ import { CoreNavigator } from '@services/navigator';
 | 
			
		||||
import { CoreLocalNotifications } from '@services/local-notifications';
 | 
			
		||||
import { CoreConstants } from '@/core/constants';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Page that displays the calendar events.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,6 @@ const routes: Routes = [
 | 
			
		||||
    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    imports: [
 | 
			
		||||
        RouterModule.forChild(routes),
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
// See the License for the specific language governing permissions and
 | 
			
		||||
// limitations under the License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import { NgModule } from '@angular/core';
 | 
			
		||||
import { RouterModule, Routes } from '@angular/router';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -55,7 +55,6 @@ export class AddonCalendarHelperProvider {
 | 
			
		||||
 | 
			
		||||
    protected eventTypeIcons: string[] = [];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns event icon based on event type.
 | 
			
		||||
     *
 | 
			
		||||
 | 
			
		||||
@ -722,7 +722,6 @@ export class AddonCalendarProvider {
 | 
			
		||||
        const originalEvent = record as AddonCalendarGetEventsEvent;
 | 
			
		||||
        const recordAsRecord = record as AddonCalendarEventDBRecord;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // Calculate data to match the new WS.
 | 
			
		||||
        eventConverted.descriptionformat = originalEvent.format;
 | 
			
		||||
        eventConverted.iscourseevent = originalEvent.eventtype == AddonCalendarEventType.COURSE;
 | 
			
		||||
@ -947,7 +946,6 @@ export class AddonCalendarProvider {
 | 
			
		||||
            params.events!.courseids = courses.map((course) => course.id);
 | 
			
		||||
            params.events!.courseids.push(site.getSiteHomeId()); // Add front page.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            return;
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
@ -1941,7 +1939,6 @@ export type AddonCalendarCalendarDay = {
 | 
			
		||||
    rarrow: string; // Rarrow.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_calendar_get_calendar_monthly_view WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -2035,7 +2032,6 @@ export type AddonCalendarDayName = {
 | 
			
		||||
    fullname: string; // Fullname.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_calendar_get_calendar_upcoming_view WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -2090,7 +2086,6 @@ export type AddonCalendarGetAllowedEventTypesWSResponse = {
 | 
			
		||||
    warnings?: CoreWSExternalWarning[];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_calendar_get_calendar_events WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -2187,7 +2182,6 @@ type AddonCalendarGetCalendarDayViewWSParams = {
 | 
			
		||||
    categoryid?: number; // Category being viewed.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_calendar_submit_create_update_form WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,6 @@ import { CoreSharedModule } from '@/core/shared.module';
 | 
			
		||||
 | 
			
		||||
import { AddonMessagesConversationInfoComponent } from './conversation-info/conversation-info';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    declarations: [
 | 
			
		||||
        AddonMessagesConversationInfoComponent,
 | 
			
		||||
 | 
			
		||||
@ -62,7 +62,6 @@ export class AddonMessagesContacts35Page implements OnInit, OnDestroy {
 | 
			
		||||
 | 
			
		||||
    searchString = '';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    constructor(
 | 
			
		||||
        protected route: ActivatedRoute,
 | 
			
		||||
    ) {
 | 
			
		||||
 | 
			
		||||
@ -45,7 +45,6 @@ const routes: Routes = [
 | 
			
		||||
    ...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    imports: [
 | 
			
		||||
        RouterModule.forChild(routes),
 | 
			
		||||
 | 
			
		||||
@ -58,7 +58,6 @@ export class AddonMessagesContactsPage implements OnInit, OnDestroy {
 | 
			
		||||
    protected contactRequestsCountObserver: CoreEventObserver;
 | 
			
		||||
    protected memberInfoObserver: CoreEventObserver;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    constructor() {
 | 
			
		||||
 | 
			
		||||
        this.siteId = CoreSites.getCurrentSiteId();
 | 
			
		||||
 | 
			
		||||
@ -326,7 +326,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
			
		||||
                        return;
 | 
			
		||||
                    }));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                // Fetch the messages for the first time.
 | 
			
		||||
@ -596,7 +595,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // Retrieve the conversation. Invalidate data first to get the right unreadcount.
 | 
			
		||||
        await AddonMessages.invalidateConversation(conversationId!);
 | 
			
		||||
 | 
			
		||||
@ -1191,7 +1189,6 @@ export class AddonMessagesDiscussionPage implements OnInit, OnDestroy, AfterView
 | 
			
		||||
                    data = await AddonMessages.sendMessage(this.userId!, text);
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                this.messagesBeingSent--;
 | 
			
		||||
                let failure = false;
 | 
			
		||||
                if (data.sent) {
 | 
			
		||||
 | 
			
		||||
@ -124,7 +124,6 @@ export class AddonMessagesDiscussions35Page implements OnInit, OnDestroy {
 | 
			
		||||
            this.refreshData();
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // If a message push notification is received, refresh the view.
 | 
			
		||||
        this.pushObserver = CorePushNotificationsDelegate.on<CorePushNotificationsNotificationBasicData>('receive')
 | 
			
		||||
            .subscribe((notification) => {
 | 
			
		||||
 | 
			
		||||
@ -29,7 +29,6 @@ export class AddonMessagesIndexLinkHandlerService extends CoreContentLinksHandle
 | 
			
		||||
    name = 'AddonMessagesIndexLinkHandler';
 | 
			
		||||
    pattern = /\/message\/index\.php((?=\d+).)*$/;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get the list of actions for a link (url).
 | 
			
		||||
     *
 | 
			
		||||
 | 
			
		||||
@ -106,7 +106,6 @@ export class AddonMessagesOfflineProvider {
 | 
			
		||||
            ),
 | 
			
		||||
        ]);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        const messageResult:
 | 
			
		||||
        AddonMessagesOfflineAnyMessagesFormatted[] =
 | 
			
		||||
            this.parseMessages(messages);
 | 
			
		||||
@ -379,6 +378,5 @@ export type AddonMessagesOfflineConversationMessagesDBRecordFormatted =
 | 
			
		||||
        useridfrom?: number; // User Id who send the message, will be likely us.
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export type AddonMessagesOfflineAnyMessagesFormatted =
 | 
			
		||||
    AddonMessagesOfflineConversationMessagesDBRecordFormatted | AddonMessagesOfflineMessagesDBRecordFormatted;
 | 
			
		||||
 | 
			
		||||
@ -1413,7 +1413,6 @@ export class AddonMessagesProvider {
 | 
			
		||||
        return AddonMessagesMainMenuHandlerService.PAGE_NAME + ( enabled ? '/group-conversations' : '');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get messages according to the params.
 | 
			
		||||
     *
 | 
			
		||||
@ -1749,7 +1748,6 @@ export class AddonMessagesProvider {
 | 
			
		||||
        const site = await CoreSites.getSite(siteId);
 | 
			
		||||
        userId = userId || site.getUserId();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        await site.invalidateWsCacheForKey(this.getCacheKeyForConversationBetweenUsers(userId, otherUserId));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -3065,7 +3063,6 @@ export type AddonMessagesConversationMessageFormatted =
 | 
			
		||||
        showTail?: boolean; // Calculated in the app. Whether to show a "tail" in the message.
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Data returned by core_message_get_user_message_preferences WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -3559,7 +3556,6 @@ export type AddonMessagesGetUserContactsWSResponse = {
 | 
			
		||||
    }[];
 | 
			
		||||
}[];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_message_get_contact_requests WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
// See the License for the specific language governing permissions and
 | 
			
		||||
// limitations under the License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import { Component, Input, ViewChild, ElementRef } from '@angular/core';
 | 
			
		||||
import { CoreSites } from '@services/sites';
 | 
			
		||||
import { CoreDomUtils } from '@services/utils/dom';
 | 
			
		||||
 | 
			
		||||
@ -275,7 +275,6 @@ export class AddonModAssignIndexComponent extends CoreCourseModuleMainActivityCo
 | 
			
		||||
            cmId: this.module!.id,
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        this.summary = submissionStatus.gradingsummary;
 | 
			
		||||
        if (!this.summary) {
 | 
			
		||||
            this.needsGradingAvalaible = false;
 | 
			
		||||
 | 
			
		||||
@ -1190,7 +1190,6 @@ type AddonModAssignSubmissionFeedbackFormatted = AddonModAssignSubmissionFeedbac
 | 
			
		||||
    advancedgrade?: boolean; // Calculated in the app. Whether it uses advanced grading.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
type AddonModAssignSubmissionGrade = {
 | 
			
		||||
    method: string;
 | 
			
		||||
    grade?: number | string;
 | 
			
		||||
 | 
			
		||||
@ -346,7 +346,6 @@ export class AddonModAssignSubmissionListPage implements AfterViewInit, OnDestro
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Helper class to manage submissions.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -46,7 +46,6 @@ export class AddonModAssignSubmissionReviewPage implements OnInit, CanLeave {
 | 
			
		||||
    protected blindMarking = false; // Whether it uses blind marking.
 | 
			
		||||
    protected forceLeave = false; // To allow leaving the page without checking for changes.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    constructor(
 | 
			
		||||
        protected route: ActivatedRoute,
 | 
			
		||||
    ) { }
 | 
			
		||||
 | 
			
		||||
@ -212,7 +212,6 @@ export class AddonModAssignHelperProvider {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // If all the plugins were empty (or there were no plugins), we consider the submission to be empty.
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
@ -709,7 +708,6 @@ export class AddonModAssignHelperProvider {
 | 
			
		||||
}
 | 
			
		||||
export const AddonModAssignHelper = makeSingleton(AddonModAssignHelperProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Assign submission with some calculated data.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -290,7 +290,6 @@ export class AddonModAssignOfflineProvider {
 | 
			
		||||
        const promises:
 | 
			
		||||
        Promise<AddonModAssignSubmissionsDBRecordFormatted[] | AddonModAssignSubmissionsGradingDBRecordFormatted[]>[] = [];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        promises.push(this.getAssignSubmissions(assignId, siteId));
 | 
			
		||||
        promises.push(this.getAssignSubmissionsGrade(assignId, siteId));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -178,7 +178,6 @@ export class AddonModAssignSyncProvider extends CoreCourseActivitySyncBaseProvid
 | 
			
		||||
            throw new CoreSyncBlockedError(Translate.instant('core.errorsyncblocked', { $a: this.componentTranslate }));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        this.logger.debug('Try to sync assign ' + assignId + ' in site ' + siteId);
 | 
			
		||||
 | 
			
		||||
        const syncPromise = this.performSyncAssign(assignId, siteId);
 | 
			
		||||
@ -553,7 +552,6 @@ export type AddonModAssignSyncResult = {
 | 
			
		||||
    gradesBlocked: number[]; // Whether some grade couldn't be synced because it was blocked. UserId fields of the blocked grade.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Data passed to AUTO_SYNCED event.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -761,7 +761,6 @@ export class AddonModAssignProvider {
 | 
			
		||||
        promises.push(this.invalidateAssignmentData(courseId, siteId));
 | 
			
		||||
        promises.push(CoreGrades.invalidateAllCourseGradesData(courseId));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        await Promise.all(promises);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -1562,7 +1561,6 @@ export type AddonModAssignSubmissionFeedback = {
 | 
			
		||||
    plugins?: AddonModAssignPlugin[]; // Plugins info.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of mod_assign_list_participants WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -1692,7 +1690,6 @@ type AddonModAssignGetSubmissionStatusWSParams = {
 | 
			
		||||
    groupid?: number; // Filter by users in group (used for generating the grading summary). Empty or 0 for all groups information.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Result of WS mod_assign_get_submission_status.
 | 
			
		||||
 */
 | 
			
		||||
@ -1812,7 +1809,6 @@ type AddonModAssignSubmitGradingFormWSParams = {
 | 
			
		||||
    jsonformdata: string; // The data from the grading form, encoded as a json array.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of mod_assign_save_grade WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -49,7 +49,6 @@ export interface AddonModAssignFeedbackHandler extends CoreDelegateHandler {
 | 
			
		||||
     */
 | 
			
		||||
    getComponent?(plugin: AddonModAssignPlugin): Type<unknown> | undefined | Promise<Type<unknown> | undefined>;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Return the draft saved data of the feedback plugin.
 | 
			
		||||
     *
 | 
			
		||||
 | 
			
		||||
@ -29,7 +29,6 @@ export class AddonModAssignSubmissionCommentsHandlerService implements AddonModA
 | 
			
		||||
    name = 'AddonModAssignSubmissionCommentsHandler';
 | 
			
		||||
    type = 'comments';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Whether the plugin can be edited in offline for existing submissions. In general, this should return false if the
 | 
			
		||||
     * plugin uses Moodle filters. The reason is that the app only prefetches filtered data, and the user should edit
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,6 @@ import { CoreTextUtils } from '@services/utils/text';
 | 
			
		||||
import { CoreUtils } from '@services/utils/utils';
 | 
			
		||||
import { AddonModAssignSubmissionOnlineTextPluginData } from '../services/handler';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Component to render an onlinetext submission plugin.
 | 
			
		||||
 */
 | 
			
		||||
@ -74,7 +73,6 @@ export class AddonModAssignSubmissionOnlineTextComponent extends AddonModAssignS
 | 
			
		||||
                this.text = AddonModAssign.getSubmissionPluginText(this.plugin);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            // Set the text.
 | 
			
		||||
            if (!this.edit) {
 | 
			
		||||
                // Not editing, see full text when clicked.
 | 
			
		||||
 | 
			
		||||
@ -100,7 +100,6 @@ export class AddonModBookIndexComponent extends CoreCourseModuleMainResourceComp
 | 
			
		||||
            // @todo leaveAnimation: 'core-modal-lateral-transition',
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        await modal.present();
 | 
			
		||||
 | 
			
		||||
        const result = await modal.onDidDismiss();
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,6 @@ export const enum AddonModBookNavStyle {
 | 
			
		||||
 | 
			
		||||
const ROOT_CACHE_KEY = 'mmaModBook:';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Service that provides some features for books.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -160,7 +160,6 @@ export class AddonModFolderProvider {
 | 
			
		||||
}
 | 
			
		||||
export const AddonModFolder = makeSingleton(AddonModFolderProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Folder returned by mod_folder_get_folders_by_courses.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -1928,7 +1928,6 @@ export type AddonModForumDeletePostWSParams = {
 | 
			
		||||
 */
 | 
			
		||||
export type AddonModForumDeletePostWSResponse = CoreStatusWithWarningsWSResponse;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of mod_forum_get_discussion_post WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -1944,7 +1943,6 @@ export type AddonModForumGetDiscussionPostWSResponse = {
 | 
			
		||||
    warnings?: CoreWSExternalWarning[];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of mod_forum_get_discussion_posts WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -46,7 +46,6 @@ export class AddonModImscpIndexComponent extends CoreCourseModuleMainResourceCom
 | 
			
		||||
    previousItem = '';
 | 
			
		||||
    nextItem = '';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    constructor(@Optional() courseContentsPage?: CoreCourseContentsPage) {
 | 
			
		||||
        super('AddonModImscpIndexComponent', courseContentsPage);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -343,7 +343,6 @@ export class AddonModImscpProvider {
 | 
			
		||||
}
 | 
			
		||||
export const AddonModImscp = makeSingleton(AddonModImscpProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of mod_imscp_view_imscp WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -387,7 +386,6 @@ type AddonModImscpGetImscpsByCoursesWSResponse = {
 | 
			
		||||
    warnings?: CoreWSExternalWarning[];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export type AddonModImscpTocItem = {
 | 
			
		||||
    href: string;
 | 
			
		||||
    title: string;
 | 
			
		||||
 | 
			
		||||
@ -165,7 +165,6 @@ export class AddonModLabelProvider {
 | 
			
		||||
}
 | 
			
		||||
export const AddonModLabel = makeSingleton(AddonModLabelProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Label returned by mod_label_get_labels_by_courses.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -19,7 +19,6 @@ import { CoreSites } from '@services/sites';
 | 
			
		||||
import { CoreDomUtils } from '@services/utils/dom';
 | 
			
		||||
import { ModalController } from '@singletons';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Modal that asks the password for a lesson.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -175,7 +175,6 @@ export class AddonModPageProvider {
 | 
			
		||||
 | 
			
		||||
export const AddonModPage = makeSingleton(AddonModPageProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Page returned by mod_page_get_pages_by_courses.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
// See the License for the specific language governing permissions and
 | 
			
		||||
// limitations under the License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import { CoreSharedModule } from '@/core/shared.module';
 | 
			
		||||
import { APP_INITIALIZER, NgModule } from '@angular/core';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -251,7 +251,6 @@ export class AddonModResourceModuleHandlerService implements CoreCourseModuleHan
 | 
			
		||||
}
 | 
			
		||||
export const AddonModResourceModuleHandler = makeSingleton(AddonModResourceModuleHandlerService);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
type AddonResourceHandlerData = {
 | 
			
		||||
    icon: string;
 | 
			
		||||
    extra: string;
 | 
			
		||||
 | 
			
		||||
@ -258,7 +258,6 @@ type AddonModUrlViewUrlWSParams = {
 | 
			
		||||
    urlid: number; // Url instance id.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * URL returnd by mod_url_get_urls_by_courses.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -176,7 +176,6 @@ export class AddonQbehaviourDeferredFeedbackHandlerService implements CoreQuesti
 | 
			
		||||
 | 
			
		||||
export const AddonQbehaviourDeferredFeedbackHandler = makeSingleton(AddonQbehaviourDeferredFeedbackHandlerService);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Check if a response is complete.
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
@ -871,7 +871,6 @@ export class AddonQtypeDdMarkerQuestion {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Encapsulates operations on dd area.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,6 @@ import { APP_INITIALIZER, NgModule } from '@angular/core';
 | 
			
		||||
import { CoreQuestionDelegate } from '@features/question/services/question-delegate';
 | 
			
		||||
import { AddonQtypeNumericalHandler } from './services/handlers/numerical';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    declarations: [
 | 
			
		||||
    ],
 | 
			
		||||
 | 
			
		||||
@ -128,7 +128,6 @@ export class CoreAttachmentsComponent implements OnInit {
 | 
			
		||||
     */
 | 
			
		||||
    async delete(index: number, askConfirm?: boolean): Promise<void> {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        if (askConfirm) {
 | 
			
		||||
            try {
 | 
			
		||||
                await CoreDomUtils.showDeleteConfirm('core.confirmdeletefile');
 | 
			
		||||
 | 
			
		||||
@ -44,7 +44,6 @@ export class CoreContextMenuComponent implements OnInit, OnDestroy {
 | 
			
		||||
    protected instanceId: string;
 | 
			
		||||
    protected parentContextMenu?: CoreContextMenuComponent;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    constructor(
 | 
			
		||||
        elementRef: ElementRef,
 | 
			
		||||
    ) {
 | 
			
		||||
 | 
			
		||||
@ -518,7 +518,6 @@ export type CoreCommentsDataWithUser = CoreCommentsData & {
 | 
			
		||||
    deleted?: boolean;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export type CoreCommentsOfflineWithUser = CoreCommentsDBRecord & {
 | 
			
		||||
    profileimageurl?: string;
 | 
			
		||||
    fullname?: string;
 | 
			
		||||
 | 
			
		||||
@ -322,7 +322,6 @@ export type CoreCommentsSyncResult = {
 | 
			
		||||
    updated: boolean; // Whether some data was sent to the server or offline data was updated.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Data passed to AUTO_SYNCED event.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -530,7 +530,6 @@ export type CoreCommentsArea = {
 | 
			
		||||
    canpostorhascomments: boolean; // Canpostorhascomments.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_comment_add_comments WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
// See the License for the specific language governing permissions and
 | 
			
		||||
// limitations under the License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import { NgModule } from '@angular/core';
 | 
			
		||||
import { RouterModule, Routes } from '@angular/router';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -32,7 +32,6 @@ export class CoreCourseModuleMainActivityPage<ActivityType extends CoreCourseMod
 | 
			
		||||
    module!: CoreCourseAnyModuleData;
 | 
			
		||||
    courseId!: number;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Component being initialized.
 | 
			
		||||
     */
 | 
			
		||||
 | 
			
		||||
@ -208,7 +208,6 @@ export class CoreCourseProvider {
 | 
			
		||||
            preSets.emergencyCache = false;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        const data = await site.read<CoreCourseCompletionActivityStatusWSResponse>(
 | 
			
		||||
            'core_completion_get_activities_completion_status',
 | 
			
		||||
            params,
 | 
			
		||||
@ -551,7 +550,6 @@ export class CoreCourseProvider {
 | 
			
		||||
            return grade;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
@ -508,7 +508,6 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
 | 
			
		||||
            return downloadedSize;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        const cachedSize = await site.getComponentCacheSize(handler.component, module.id);
 | 
			
		||||
 | 
			
		||||
        return cachedSize + downloadedSize;
 | 
			
		||||
 | 
			
		||||
@ -146,7 +146,6 @@ export class CoreCourseSyncProvider extends CoreSyncBaseProvider<CoreCourseSyncR
 | 
			
		||||
            <CoreCourseManualCompletionDBRecord[]> [],
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        if (!completions || !completions.length) {
 | 
			
		||||
            // Nothing to sync, set sync time.
 | 
			
		||||
            await this.setSyncTime(courseId, siteId);
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module'
 | 
			
		||||
 | 
			
		||||
import { CoreCoursesAvailableCoursesPage } from './available-courses';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const routes: Routes = [
 | 
			
		||||
    {
 | 
			
		||||
        path: '',
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,6 @@ import { CoreCoursesComponentsModule } from '../../components/components.module'
 | 
			
		||||
 | 
			
		||||
import { CoreCoursesCategoriesPage } from './categories';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const routes: Routes = [
 | 
			
		||||
    {
 | 
			
		||||
        path: '',
 | 
			
		||||
 | 
			
		||||
@ -138,7 +138,6 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Toggle download enabled.
 | 
			
		||||
     */
 | 
			
		||||
@ -179,5 +178,4 @@ export class CoreCoursesDashboardPage implements OnInit, OnDestroy {
 | 
			
		||||
        this.updateSiteObserver?.off();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -122,7 +122,6 @@ export class CoreCoursesDashboardProvider {
 | 
			
		||||
 | 
			
		||||
export const CoreCoursesDashboard = makeSingleton(CoreCoursesDashboardProvider);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_block_get_dashboard_blocks WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,6 @@ import { CoreUtils } from '@services/utils/utils';
 | 
			
		||||
import { makeSingleton } from '@singletons';
 | 
			
		||||
import { CoreCourses } from '../courses';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Handler for course request push notifications clicks.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -370,7 +370,6 @@ export class CoreEmulatorCaptureMediaComponent implements OnInit, OnDestroy {
 | 
			
		||||
            const height = this.streamVideo?.nativeElement.videoHeight;
 | 
			
		||||
            const loadingModal = await CoreDomUtils.showModalLoading();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            this.imgCanvas.nativeElement.width = width;
 | 
			
		||||
            this.imgCanvas.nativeElement.height = height;
 | 
			
		||||
            this.imgCanvas.nativeElement.getContext('2d').drawImage(this.streamVideo?.nativeElement, 0, 0, width, height);
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,6 @@ export class CoreEmulatorHelperProvider {
 | 
			
		||||
            return;
 | 
			
		||||
        }));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        return CoreUtils.allPromises(promises);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -109,7 +109,6 @@ export const SITE_SCHEMA: CoreSiteSchema = {
 | 
			
		||||
    ],
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Data stored in DB for badge.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -128,7 +128,6 @@ export class CoreQuestionComponent implements OnInit {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        // Load local answers if offline is enabled.
 | 
			
		||||
        if (this.offlineEnabled && this.component && this.attemptId) {
 | 
			
		||||
            await CoreQuestionHelper.loadLocalAnswers(this.question, this.component, this.attemptId);
 | 
			
		||||
 | 
			
		||||
@ -28,7 +28,6 @@ import {
 | 
			
		||||
    QUESTION_TABLE_NAME,
 | 
			
		||||
} from './database/question';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const QUESTION_PREFIX_REGEX = /q\d+:(\d+)_/;
 | 
			
		||||
const STATES: Record<string, CoreQuestionState> = {
 | 
			
		||||
    todo: {
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,6 @@ export const RATINGS_SITE_SCHEMA: CoreSiteSchema = {
 | 
			
		||||
    ],
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Primary data to identify a stored rating.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,6 @@ import { CoreEvents } from '@singletons/events';
 | 
			
		||||
import { CoreRating } from './rating';
 | 
			
		||||
import { CoreRatingItemSet, CoreRatingOffline } from './rating-offline';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Service to sync ratings.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -513,7 +513,6 @@ export type CoreRatingItemRating = {
 | 
			
		||||
    timemodified: number; // Time modified (timestamp).
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_rating_get_item_ratings WS.
 | 
			
		||||
 */
 | 
			
		||||
@ -535,7 +534,6 @@ export type CoreRatingGetItemRatingsWSResponse = {
 | 
			
		||||
    warnings?: CoreWSExternalWarning[];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Params of core_rating_add_rating WS.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,6 @@ import { NgModule } from '@angular/core';
 | 
			
		||||
import { CoreSharedModule } from '@/core/shared.module';
 | 
			
		||||
import { CoreSearchBoxComponent } from './search-box/search-box';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
    declarations: [
 | 
			
		||||
        CoreSearchBoxComponent,
 | 
			
		||||
 | 
			
		||||
@ -159,7 +159,6 @@ export class CoreSearchBoxComponent implements OnInit {
 | 
			
		||||
        if (!this.formElement) {
 | 
			
		||||
            this.formElement = event.detail.target.closest('form');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            this.formElement?.addEventListener('blur', () => {
 | 
			
		||||
                // Wait the new element to be focused.
 | 
			
		||||
                setTimeout(() => {
 | 
			
		||||
 | 
			
		||||
@ -94,7 +94,6 @@ export class CoreSettingsGeneralPage {
 | 
			
		||||
                selected: value === this.selectedZoomLevel,
 | 
			
		||||
            }));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        this.richTextEditor = await CoreConfig.get(CoreConstants.SETTINGS_RICH_TEXT_EDITOR, true);
 | 
			
		||||
 | 
			
		||||
        this.debugDisplay = await CoreConfig.get(CoreConstants.SETTINGS_DEBUG_DISPLAY, false);
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,6 @@
 | 
			
		||||
// See the License for the specific language governing permissions and
 | 
			
		||||
// limitations under the License.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import { NgModule } from '@angular/core';
 | 
			
		||||
import { RouterModule, Routes } from '@angular/router';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -115,7 +115,6 @@ export class CoreSettingsHelperProvider {
 | 
			
		||||
        const promises: Promise<number | void>[] = cleanSchemas.map((name) => site.getDb().deleteRecords(name));
 | 
			
		||||
        const filepoolService = CoreFilepool.instance;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        promises.push(site.deleteFolder().then(() => {
 | 
			
		||||
            filepoolService.clearAllPackagesStatus(siteId);
 | 
			
		||||
            filepoolService.clearFilepool(siteId);
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,6 @@ import { CoreQuestionBehaviourDelegate } from '@features/question/services/behav
 | 
			
		||||
import { CoreQuestionBehaviourButton, CoreQuestionQuestion } from '@features/question/services/question-helper';
 | 
			
		||||
import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/classes/compile-init-component';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Component that displays a question behaviour created using a site plugin.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -20,7 +20,6 @@ import { CoreSitePluginsCompileInitComponent } from '@features/siteplugins/class
 | 
			
		||||
import { CoreUserProfileField } from '@features/user/services/user';
 | 
			
		||||
import { CoreUserProfileFieldDelegate } from '@features/user/services/user-profile-field-delegate';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Component that displays a user profile field created using a site plugin.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -123,7 +123,6 @@ export class CoreSitePluginsCourseOptionPage implements OnInit {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        const result = await this.content.callComponentFunction('canLeave');
 | 
			
		||||
 | 
			
		||||
        return result === undefined || result === null ? true : !!result;
 | 
			
		||||
 | 
			
		||||
@ -100,7 +100,6 @@ export class CoreSitePluginsModuleIndexPage implements OnInit, CanLeave {
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        const result = await this.content.callComponentFunction('canLeave');
 | 
			
		||||
 | 
			
		||||
        return result === undefined || result === null ? true : !!result;
 | 
			
		||||
 | 
			
		||||
@ -93,7 +93,6 @@ export class CoreSitePluginsProvider {
 | 
			
		||||
            appplatform: 'browser',
 | 
			
		||||
        };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        if (args.appismobile) {
 | 
			
		||||
            defaultArgs.appplatform = CoreApp.isIOS() ? 'ios' : 'android';
 | 
			
		||||
        }
 | 
			
		||||
@ -582,7 +581,6 @@ export class CoreSitePluginsProvider {
 | 
			
		||||
 | 
			
		||||
            const result = await this.getContent(component, method, args, preSets);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            // Prefetch the files in the content.
 | 
			
		||||
            if (result.files.length) {
 | 
			
		||||
                await CoreFilepool.downloadOrPrefetchFiles(
 | 
			
		||||
 | 
			
		||||
@ -36,7 +36,6 @@ export abstract class CoreUserProfileFieldBaseComponent implements OnInit {
 | 
			
		||||
    @Input() contextInstanceId?: number; // The instance ID related to the context.
 | 
			
		||||
    @Input() courseId?: number; // Course ID the field belongs to (if any). It can be used to improve performance with filters.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    control?: FormControl;
 | 
			
		||||
    modelName = '';
 | 
			
		||||
    value?: string;
 | 
			
		||||
 | 
			
		||||
@ -730,7 +730,6 @@ export class CoreUserProvider {
 | 
			
		||||
            return CoreUserOffline.setPreference(name, value);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            // Update the preference in the site.
 | 
			
		||||
            const preferences = [
 | 
			
		||||
 | 
			
		||||
@ -478,7 +478,6 @@ export class CoreCronDelegateService {
 | 
			
		||||
 | 
			
		||||
export const CoreCronDelegate = makeSingleton(CoreCronDelegateService);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Interface that all cron handlers must implement.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -449,7 +449,6 @@ export type CoreGroup = {
 | 
			
		||||
    courseid?: number; // Coure Id.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Group info for an activity.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -1732,7 +1732,6 @@ export class CoreDomUtilsProvider {
 | 
			
		||||
            cssClass: fullScreen ? 'core-modal-fullscreen' : '',
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        await modal.present();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1509,7 +1509,6 @@ export class CoreUtilsProvider {
 | 
			
		||||
            // do nothing
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        if (!CoreApp.isMobile()) {
 | 
			
		||||
            return Promise.reject('QRScanner isn\'t available in browser.');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -1104,7 +1104,6 @@ export type CoreWSDate = {
 | 
			
		||||
    timestamp: number; // Timestamp.
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * PreSets accepted by the WS call.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user