diff --git a/Course/Course/Presentation/Outline/CourseOutlineView.swift b/Course/Course/Presentation/Outline/CourseOutlineView.swift index a08479293..5b9f9bea7 100644 --- a/Course/Course/Presentation/Outline/CourseOutlineView.swift +++ b/Course/Course/Presentation/Outline/CourseOutlineView.swift @@ -229,7 +229,13 @@ struct CourseStructureView: View { }, label: { Group { - child.type.image + if child.completion == 1 { + CoreAssets.finished.swiftUIImage + .renderingMode(.template) + .foregroundColor(.accentColor) + } else { + child.type.image + } Text(child.displayName) .font(Theme.Fonts.titleMedium) .multilineTextAlignment(.leading) diff --git a/Course/Course/Presentation/Video/VideoPlayerViewModel.swift b/Course/Course/Presentation/Video/VideoPlayerViewModel.swift index 7aab1c567..cddcdba6c 100644 --- a/Course/Course/Presentation/Video/VideoPlayerViewModel.swift +++ b/Course/Course/Presentation/Video/VideoPlayerViewModel.swift @@ -50,7 +50,7 @@ public class VideoPlayerViewModel: ObservableObject { @MainActor func blockCompletionRequest() async { - let fullBlockID = "block-v1:\(courseID.dropFirst(10))+type@discussion+block@\(blockID)" + let fullBlockID = "block-v1:\(courseID.dropFirst(10))+type@video+block@\(blockID)" do { try await interactor.blockCompletionRequest(courseID: courseID, blockID: fullBlockID) } catch let error {