mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Use new action_delete and action_delete_account
This commit is contained in:
committed by
Benoit Marty
parent
c343df8351
commit
a662a5a045
+1
-1
@@ -135,7 +135,7 @@ private fun ColumnScope.Buttons(
|
||||
) {
|
||||
val logoutAction = state.accountDeactivationAction
|
||||
Button(
|
||||
text = stringResource(CommonStrings.action_deactivate),
|
||||
text = stringResource(CommonStrings.action_delete),
|
||||
showProgress = logoutAction is AsyncAction.Loading,
|
||||
destructive = true,
|
||||
enabled = state.submitEnabled,
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ fun AccountDeactivationConfirmationDialog(
|
||||
ConfirmationDialog(
|
||||
title = stringResource(id = R.string.screen_deactivate_account_title),
|
||||
content = stringResource(R.string.screen_deactivate_account_confirmation_dialog_content),
|
||||
submitText = stringResource(id = CommonStrings.action_deactivate),
|
||||
submitText = stringResource(id = CommonStrings.action_delete),
|
||||
onSubmitClick = onSubmitClick,
|
||||
onDismiss = onDismiss,
|
||||
destructiveSubmit = true,
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class AccountDeactivationViewTest {
|
||||
eventSink = eventsRecorder,
|
||||
),
|
||||
)
|
||||
rule.clickOn(CommonStrings.action_deactivate)
|
||||
rule.clickOn(CommonStrings.action_delete)
|
||||
eventsRecorder.assertSingle(AccountDeactivationEvents.DeactivateAccount(false))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user