Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Course/Course/Presentation/Outline/CourseOutlineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down