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>
|
</div>
|
||||||
</li>
|
</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>
|
</Fragment>
|
||||||
) : (
|
) : (
|
||||||
reducer.currentReducerState?.reducer_type === "recovery" && (
|
reducer.currentReducerState?.reducer_type === "recovery" && (
|
||||||
@ -281,21 +294,25 @@ export function Sidebar({ mobile }: Props): VNode {
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
|
{reducer.currentReducerState.recovery_state ===
|
||||||
|
RecoveryStates.RecoveryFinished ? (
|
||||||
|
<Fragment />
|
||||||
|
) : (
|
||||||
|
<li>
|
||||||
|
<div class="buttons ml-4">
|
||||||
|
<button
|
||||||
|
class="button is-danger is-right"
|
||||||
|
onClick={() => reducer.reset()}
|
||||||
|
>
|
||||||
|
Reset session
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
)}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
{reducer.currentReducerState && (
|
|
||||||
<li>
|
|
||||||
<div class="buttons ml-4">
|
|
||||||
<button
|
|
||||||
class="button is-danger is-right"
|
|
||||||
onClick={() => reducer.reset()}
|
|
||||||
>
|
|
||||||
Start again
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
)}
|
|
||||||
{/* <li>
|
{/* <li>
|
||||||
<div class="buttons ml-4">
|
<div class="buttons ml-4">
|
||||||
<button class="button is-info is-right" >Manage providers</button>
|
<button class="button is-info is-right" >Manage providers</button>
|
||||||
|
@ -57,6 +57,23 @@ export function BackupFinishedScreen(): VNode {
|
|||||||
</div>
|
</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>
|
</div>
|
||||||
)}
|
)}
|
||||||
</AnastasisClientFrame>
|
</AnastasisClientFrame>
|
||||||
|
@ -95,11 +95,30 @@ export function RecoveryFinishedScreen(): VNode {
|
|||||||
<span>Download content</span>
|
<span>Download content</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{plainText ? (
|
{plainText ? (
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<QR text={secret} />
|
<QR text={secret} />
|
||||||
</div>
|
</div>
|
||||||
) : undefined}
|
) : 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>
|
</AnastasisClientFrame>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user