diff --git a/src/addon/mod/workshop/components/index/index.ts b/src/addon/mod/workshop/components/index/index.ts index ebef564d2..d14b2b04e 100644 --- a/src/addon/mod/workshop/components/index/index.ts +++ b/src/addon/mod/workshop/components/index/index.ts @@ -154,6 +154,7 @@ export class AddonModWorkshopIndexComponent extends CoreCourseModuleMainActivity promises.push(this.workshopProvider.invalidateReviewerAssesmentsData(this.workshop.id)); } promises.push(this.workshopProvider.invalidateGradesData(this.workshop.id)); + promises.push(this.workshopProvider.invalidateWorkshopWSData(this.workshop.id)); } return Promise.all(promises); diff --git a/src/addon/mod/workshop/pages/assessment/assessment.html b/src/addon/mod/workshop/pages/assessment/assessment.html index 96b65ea32..76229b26a 100644 --- a/src/addon/mod/workshop/pages/assessment/assessment.html +++ b/src/addon/mod/workshop/pages/assessment/assessment.html @@ -9,7 +9,7 @@ - + diff --git a/src/addon/mod/workshop/pages/edit-submission/edit-submission.html b/src/addon/mod/workshop/pages/edit-submission/edit-submission.html index c1530b1f2..71b1e535d 100644 --- a/src/addon/mod/workshop/pages/edit-submission/edit-submission.html +++ b/src/addon/mod/workshop/pages/edit-submission/edit-submission.html @@ -9,9 +9,6 @@ - - -
diff --git a/src/addon/mod/workshop/pages/edit-submission/edit-submission.ts b/src/addon/mod/workshop/pages/edit-submission/edit-submission.ts index 10864c6ee..816a29b46 100644 --- a/src/addon/mod/workshop/pages/edit-submission/edit-submission.ts +++ b/src/addon/mod/workshop/pages/edit-submission/edit-submission.ts @@ -274,26 +274,6 @@ export class AddonModWorkshopEditSubmissionPage implements OnInit, OnDestroy { return false; } - /** - * Pull to refresh. - * - * @param refresher Refresher. - */ - refreshSubmission(refresher: any): void { - if (this.loaded) { - const promises = []; - - promises.push(this.workshopProvider.invalidateSubmissionData(this.workshopId, this.submission.id)); - promises.push(this.workshopProvider.invalidateSubmissionsData(this.workshopId)); - - Promise.all(promises).finally(() => { - return this.fetchSubmissionData(); - }).finally(() => { - refresher.complete(); - }); - } - } - /** * Save the submission. */ diff --git a/src/addon/mod/workshop/pages/submission/submission.html b/src/addon/mod/workshop/pages/submission/submission.html index cb56ca01f..41fbecd1d 100644 --- a/src/addon/mod/workshop/pages/submission/submission.html +++ b/src/addon/mod/workshop/pages/submission/submission.html @@ -12,7 +12,7 @@ - + diff --git a/src/addon/mod/workshop/pages/submission/submission.ts b/src/addon/mod/workshop/pages/submission/submission.ts index 464b2e3e3..3fb884e5f 100644 --- a/src/addon/mod/workshop/pages/submission/submission.ts +++ b/src/addon/mod/workshop/pages/submission/submission.ts @@ -373,6 +373,10 @@ export class AddonModWorkshopSubmissionPage implements OnInit, OnDestroy { promises.push(this.workshopProvider.invalidateAssessmentData(this.workshopId, this.assessmentId)); } + if (this.assessmentUserId) { + promises.push(this.workshopProvider.invalidateReviewerAssesmentsData(this.workshopId, this.assessmentId)); + } + return Promise.all(promises).finally(() => { this.eventsProvider.trigger(AddonModWorkshopProvider.ASSESSMENT_INVALIDATED, this.siteId);