From 92f8ac83bd0b252db39a0b3f579fa360257fd627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 13 Nov 2023 15:29:40 +0100 Subject: [PATCH] MOBILE-4467 assign: Filter shown annotated PDF files --- src/addons/mod/assign/feedback/editpdf/component/editpdf.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts b/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts index 0b4fc30fe..bb06c3bc5 100644 --- a/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts +++ b/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts @@ -34,6 +34,8 @@ export class AddonModAssignFeedbackEditPdfComponent extends AddonModAssignFeedba */ async ngOnInit(): Promise { if (this.plugin) { + this.plugin.fileareas = this.plugin.fileareas?.filter((filearea) => filearea.area === 'download'); + this.files = AddonModAssign.getSubmissionPluginAttachments(this.plugin); } }