forked from EVOgeek/Vmeda.Online
MOBILE-3320 survey: Fix page not updated after auto sync
parent
9ddce87347
commit
11f47a7f7c
|
@ -32,7 +32,12 @@ import {
|
||||||
} from '../../services/survey';
|
} from '../../services/survey';
|
||||||
import { AddonModSurveyHelper, AddonModSurveyQuestionFormatted } from '../../services/survey-helper';
|
import { AddonModSurveyHelper, AddonModSurveyQuestionFormatted } from '../../services/survey-helper';
|
||||||
import { AddonModSurveyOffline } from '../../services/survey-offline';
|
import { AddonModSurveyOffline } from '../../services/survey-offline';
|
||||||
import { AddonModSurveyAutoSyncData, AddonModSurveySync, AddonModSurveySyncResult } from '../../services/survey-sync';
|
import {
|
||||||
|
AddonModSurveyAutoSyncData,
|
||||||
|
AddonModSurveySync,
|
||||||
|
AddonModSurveySyncProvider,
|
||||||
|
AddonModSurveySyncResult,
|
||||||
|
} from '../../services/survey-sync';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component that displays a survey.
|
* Component that displays a survey.
|
||||||
|
@ -52,6 +57,7 @@ export class AddonModSurveyIndexComponent extends CoreCourseModuleMainActivityCo
|
||||||
answers: Record<string, string> = {};
|
answers: Record<string, string> = {};
|
||||||
|
|
||||||
protected currentUserId?: number;
|
protected currentUserId?: number;
|
||||||
|
protected syncEventName = AddonModSurveySyncProvider.AUTO_SYNCED;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected content?: IonContent,
|
protected content?: IonContent,
|
||||||
|
|
Loading…
Reference in New Issue