2
0
Fork 0

MOBILE-3320 survey: Fix page not updated after auto sync

main
Dani Palou 2021-06-14 13:09:37 +02:00
parent 9ddce87347
commit 11f47a7f7c
1 changed files with 7 additions and 1 deletions

View File

@ -32,7 +32,12 @@ import {
} from '../../services/survey';
import { AddonModSurveyHelper, AddonModSurveyQuestionFormatted } from '../../services/survey-helper';
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.
@ -52,6 +57,7 @@ export class AddonModSurveyIndexComponent extends CoreCourseModuleMainActivityCo
answers: Record<string, string> = {};
protected currentUserId?: number;
protected syncEventName = AddonModSurveySyncProvider.AUTO_SYNCED;
constructor(
protected content?: IonContent,