Skip to content

Commit

Permalink
fix: [ANDROAPP-6101] Do not show save anyway button if there are erro…
Browse files Browse the repository at this point in the history
…rs, only with warnings
  • Loading branch information
xavimolloy committed Jun 26, 2024
1 parent e6d031d commit d1bc302
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class ConfigureEventCompletionDialog(
!canComplete && onCompleteMessage != null,
)
val mainButton = getMainButton(dialogType, eventState)
val secondaryButton = if (canSkipErrorFix || eventState == EventStatus.COMPLETED) {
val secondaryButton = if (canSkipErrorFix || dialogType == WARNING) {
EventCompletionButtons(
SecondaryButton(if (eventState == EventStatus.COMPLETED) provider.provideSaveAnyway() else provider.provideNotNow()),
SecondaryButton(provider.provideNotNow()),
FormBottomDialog.ActionType.FINISH,
)
} else {
Expand Down

0 comments on commit d1bc302

Please sign in to comment.