From deccc4cbf57a61e6a777e8c85f9576f5a631c4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 6 Jun 2024 11:01:02 +0200 Subject: [PATCH] MOBILE-4470 workshop: Remove changes confirmation when not editing --- .../components/assessment-strategy/assessment-strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/mod/workshop/components/assessment-strategy/assessment-strategy.ts b/src/addons/mod/workshop/components/assessment-strategy/assessment-strategy.ts index 95f62fd6d..c3656705a 100644 --- a/src/addons/mod/workshop/components/assessment-strategy/assessment-strategy.ts +++ b/src/addons/mod/workshop/components/assessment-strategy/assessment-strategy.ts @@ -250,7 +250,7 @@ export class AddonModWorkshopAssessmentStrategyComponent implements OnInit, OnDe * @returns True if data has changed. */ hasDataChanged(): boolean { - if (!this.assessmentStrategyLoaded || !this.workshop.strategy) { + if (!this.assessmentStrategyLoaded || !this.workshop.strategy || !this.edit) { return false; }