MOBILE-4470 completion: Fix manual completion not updated
parent
40032e7d5f
commit
1c84715f9a
|
@ -1967,6 +1967,7 @@ export class CoreCourseHelperProvider {
|
||||||
completion.state = completion.state === CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE
|
completion.state = completion.state === CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE
|
||||||
? CoreCourseModuleCompletionStatus.COMPLETION_INCOMPLETE
|
? CoreCourseModuleCompletionStatus.COMPLETION_INCOMPLETE
|
||||||
: CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE;
|
: CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE;
|
||||||
|
completion.isoverallcomplete = completion.state === CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await CoreCourse.markCompletedManually(
|
const response = await CoreCourse.markCompletedManually(
|
||||||
|
@ -1985,6 +1986,7 @@ export class CoreCourseHelperProvider {
|
||||||
completion.state = completion.state === CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE
|
completion.state = completion.state === CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE
|
||||||
? CoreCourseModuleCompletionStatus.COMPLETION_INCOMPLETE
|
? CoreCourseModuleCompletionStatus.COMPLETION_INCOMPLETE
|
||||||
: CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE;
|
: CoreCourseModuleCompletionStatus.COMPLETION_COMPLETE;
|
||||||
|
completion.isoverallcomplete = !completion.isoverallcomplete;
|
||||||
|
|
||||||
CoreDomUtils.showErrorModalDefault(error, 'core.errorchangecompletion', true);
|
CoreDomUtils.showErrorModalDefault(error, 'core.errorchangecompletion', true);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue