Add default value for Failure.hasQuickFix
This commit is contained in:
parent
c4d7d42141
commit
054e0564f8
18 changed files with 34 additions and 34 deletions
|
|
@ -60,7 +60,7 @@ class NotificationTroubleshootTestDelegate(
|
|||
if (isSuccess) {
|
||||
NotificationTroubleshootTestState.Status.Success
|
||||
} else {
|
||||
NotificationTroubleshootTestState.Status.Failure(hasQuickFix)
|
||||
NotificationTroubleshootTestState.Status.Failure(hasQuickFix = hasQuickFix)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ data class NotificationTroubleshootTestState(
|
|||
data object WaitingForUser : Status
|
||||
data object Success : Status
|
||||
data class Failure(
|
||||
val hasQuickFix: Boolean,
|
||||
val hasQuickFix: Boolean = false,
|
||||
val isCritical: Boolean = true,
|
||||
val quickFixButtonString: String? = null,
|
||||
) : Status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue