Skip to content

Commit

Permalink
Disabled quiz participation (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin authored Nov 15, 2024
1 parent 075fc63 commit f2230e6
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,21 @@ fun ExerciseActionButtons(
val startQuizAvailable = exercise.isUninitializedC

if (openQuizAvailable || startQuizAvailable) {
Button(
modifier = modifier,
onClick = {
if (openQuizAvailable) actions.onClickOpenQuiz()
else actions.onClickStartQuiz()
}
) {
Text(
text = stringResource(
id = if (openQuizAvailable) R.string.exercise_actions_open_quiz_button
else R.string.exercise_actions_start_quiz_button
)
)
}
// TODO: Quiz participation temporarily disabled. See https://github.com/ls1intum/artemis-android/issues/107
// Button(
// modifier = modifier,
// onClick = {
// if (openQuizAvailable) actions.onClickOpenQuiz()
// else actions.onClickStartQuiz()
// }
// ) {
// Text(
// text = stringResource(
// id = if (openQuizAvailable) R.string.exercise_actions_open_quiz_button
// else R.string.exercise_actions_start_quiz_button
// )
// )
// }
}
}

Expand Down

0 comments on commit f2230e6

Please sign in to comment.