mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Show sign out button only at initial step.
This commit is contained in:
+4
-2
@@ -105,13 +105,15 @@ fun VerifySelfSessionView(
|
|||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = {},
|
title = {},
|
||||||
actions = {
|
actions = {
|
||||||
if (state.verificationFlowStep != FlowStep.Completed) {
|
if (state.verificationFlowStep != FlowStep.Completed &&
|
||||||
if (state.displaySkipButton && LocalInspectionMode.current.not()) {
|
state.displaySkipButton &&
|
||||||
|
LocalInspectionMode.current.not()) {
|
||||||
TextButton(
|
TextButton(
|
||||||
text = stringResource(CommonStrings.action_skip),
|
text = stringResource(CommonStrings.action_skip),
|
||||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SkipVerification) }
|
onClick = { state.eventSink(VerifySelfSessionViewEvents.SkipVerification) }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (state.verificationFlowStep is FlowStep.Initial) {
|
||||||
TextButton(
|
TextButton(
|
||||||
text = stringResource(CommonStrings.action_signout),
|
text = stringResource(CommonStrings.action_signout),
|
||||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SignOut) }
|
onClick = { state.eventSink(VerifySelfSessionViewEvents.SignOut) }
|
||||||
|
|||||||
Reference in New Issue
Block a user