Skip to content

Commit a64b5f8

Browse files
committed
feat: all ticket states except questions should be auto-dismissable
1 parent 9e84a71 commit a64b5f8

File tree

1 file changed

+2
-2
lines changed
  • pretixscan/composeApp/src/commonMain/kotlin/eu/pretix/scan/tickets/data

1 file changed

+2
-2
lines changed

pretixscan/composeApp/src/commonMain/kotlin/eu/pretix/scan/tickets/data/ResultState.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ fun ResultState.color(): Color {
3030
}
3131

3232
fun ResultState.requiresUserInteraction(): Boolean {
33-
return this == ResultState.DIALOG_UNPAID || this == ResultState.DIALOG_QUESTIONS
33+
return this == ResultState.DIALOG_QUESTIONS
3434
}
3535

3636
fun ResultState.isAutoDismissible(): Boolean {
37-
return this == ResultState.SUCCESS || this == ResultState.SUCCESS_EXIT
37+
return this == ResultState.SUCCESS || this == ResultState.SUCCESS_EXIT || this == ResultState.DIALOG_UNPAID || this == ResultState.ERROR || this == ResultState.WARNING
3838
}
3939

4040
data class ResultStateData(

0 commit comments

Comments
 (0)