Show sign out button only at initial step.
This commit is contained in:
parent
f4beddef99
commit
9134d334bb
1 changed files with 9 additions and 7 deletions
|
|
@ -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 &&
|
||||||
TextButton(
|
LocalInspectionMode.current.not()) {
|
||||||
text = stringResource(CommonStrings.action_skip),
|
TextButton(
|
||||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SkipVerification) }
|
text = stringResource(CommonStrings.action_skip),
|
||||||
)
|
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) }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue