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(
|
||||
title = {},
|
||||
actions = {
|
||||
if (state.verificationFlowStep != FlowStep.Completed) {
|
||||
if (state.displaySkipButton && LocalInspectionMode.current.not()) {
|
||||
TextButton(
|
||||
text = stringResource(CommonStrings.action_skip),
|
||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SkipVerification) }
|
||||
)
|
||||
}
|
||||
if (state.verificationFlowStep != FlowStep.Completed &&
|
||||
state.displaySkipButton &&
|
||||
LocalInspectionMode.current.not()) {
|
||||
TextButton(
|
||||
text = stringResource(CommonStrings.action_skip),
|
||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SkipVerification) }
|
||||
)
|
||||
}
|
||||
if (state.verificationFlowStep is FlowStep.Initial) {
|
||||
TextButton(
|
||||
text = stringResource(CommonStrings.action_signout),
|
||||
onClick = { state.eventSink(VerifySelfSessionViewEvents.SignOut) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue