Skip to content

Commit f2230e6

Browse files
authored
Disabled quiz participation (#108)
1 parent 075fc63 commit f2230e6

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/exercise/ExerciseActionButtons.kt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,21 @@ fun ExerciseActionButtons(
7777
val startQuizAvailable = exercise.isUninitializedC
7878

7979
if (openQuizAvailable || startQuizAvailable) {
80-
Button(
81-
modifier = modifier,
82-
onClick = {
83-
if (openQuizAvailable) actions.onClickOpenQuiz()
84-
else actions.onClickStartQuiz()
85-
}
86-
) {
87-
Text(
88-
text = stringResource(
89-
id = if (openQuizAvailable) R.string.exercise_actions_open_quiz_button
90-
else R.string.exercise_actions_start_quiz_button
91-
)
92-
)
93-
}
80+
// TODO: Quiz participation temporarily disabled. See https://github.com/ls1intum/artemis-android/issues/107
81+
// Button(
82+
// modifier = modifier,
83+
// onClick = {
84+
// if (openQuizAvailable) actions.onClickOpenQuiz()
85+
// else actions.onClickStartQuiz()
86+
// }
87+
// ) {
88+
// Text(
89+
// text = stringResource(
90+
// id = if (openQuizAvailable) R.string.exercise_actions_open_quiz_button
91+
// else R.string.exercise_actions_start_quiz_button
92+
// )
93+
// )
94+
// }
9495
}
9596
}
9697

0 commit comments

Comments
 (0)