Updated on 2026-08-14
This commit is contained in:
parent
51f819724f
commit
e83898b9ee
2 changed files with 7 additions and 2 deletions
|
|
@ -148,13 +148,17 @@ sealed class NotificationUM(val config: NotificationConfig) {
|
|||
},
|
||||
)
|
||||
|
||||
data class ExistentialDeposit(val deposit: String, val onConfirmClick: () -> Unit) : Error(
|
||||
data class ExistentialDeposit(
|
||||
val deposit: String,
|
||||
val onConfirmClick: () -> Unit,
|
||||
val isActionable: Boolean,
|
||||
) : Error(
|
||||
title = resourceReference(R.string.send_notification_existential_deposit_title),
|
||||
subtitle = resourceReference(R.string.send_notification_existential_deposit_text, wrappedList(deposit)),
|
||||
buttonState = NotificationConfig.ButtonsState.PrimaryButtonConfig(
|
||||
text = resourceReference(R.string.send_notification_leave_button, wrappedList(deposit)),
|
||||
onClick = onConfirmClick,
|
||||
),
|
||||
).takeIf { isActionable },
|
||||
)
|
||||
|
||||
data class ReserveAmount(val amount: String) : Error(
|
||||
|
|
|
|||
|
|
@ -206,6 +206,7 @@ object NotificationsFactory {
|
|||
NotificationUM.Error.ExistentialDeposit::class.java,
|
||||
)
|
||||
},
|
||||
isActionable = balance > existentialDeposit,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue