fix: showing start again in the last main screen
This commit is contained in:
parent
4707c88742
commit
bbde2a9bb9
@ -190,6 +190,19 @@ export function Sidebar({ mobile }: Props): VNode {
|
||||
</div>
|
||||
</li>
|
||||
)}
|
||||
{reducer.currentReducerState.backup_state !==
|
||||
BackupStates.BackupFinished && (
|
||||
<li>
|
||||
<div class="buttons ml-4">
|
||||
<button
|
||||
class="button is-danger is-right"
|
||||
onClick={() => reducer.reset()}
|
||||
>
|
||||
Reset session
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
)}
|
||||
</Fragment>
|
||||
) : (
|
||||
reducer.currentReducerState?.reducer_type === "recovery" && (
|
||||
@ -281,21 +294,25 @@ export function Sidebar({ mobile }: Props): VNode {
|
||||
</div>
|
||||
</li>
|
||||
)}
|
||||
</Fragment>
|
||||
)
|
||||
)}
|
||||
{reducer.currentReducerState && (
|
||||
{reducer.currentReducerState.recovery_state ===
|
||||
RecoveryStates.RecoveryFinished ? (
|
||||
<Fragment />
|
||||
) : (
|
||||
<li>
|
||||
<div class="buttons ml-4">
|
||||
<button
|
||||
class="button is-danger is-right"
|
||||
onClick={() => reducer.reset()}
|
||||
>
|
||||
Start again
|
||||
Reset session
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
)}
|
||||
</Fragment>
|
||||
)
|
||||
)}
|
||||
|
||||
{/* <li>
|
||||
<div class="buttons ml-4">
|
||||
<button class="button is-info is-right" >Manage providers</button>
|
||||
|
@ -57,6 +57,23 @@ export function BackupFinishedScreen(): VNode {
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<p>
|
||||
<div class="buttons ml-4">
|
||||
<button
|
||||
class="button is-primary is-right"
|
||||
onClick={() => reducer.reset()}
|
||||
>
|
||||
Start again
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</AnastasisClientFrame>
|
||||
|
@ -95,11 +95,30 @@ export function RecoveryFinishedScreen(): VNode {
|
||||
<span>Download content</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{plainText ? (
|
||||
<div class="block">
|
||||
<QR text={secret} />
|
||||
</div>
|
||||
) : undefined}
|
||||
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
}}
|
||||
>
|
||||
<p>
|
||||
<div class="buttons ml-4">
|
||||
<button
|
||||
class="button is-primary is-right"
|
||||
onClick={() => reducer.reset()}
|
||||
>
|
||||
Start again
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</AnastasisClientFrame>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user