mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-11 17:24:25 +01:00
move backup cta to top
This commit is contained in:
committed by
Tony Giorgio
parent
dab53ac7dd
commit
84daafa518
@@ -434,6 +434,17 @@ export function CombinedActivity() {
|
||||
/>
|
||||
</Show>
|
||||
<Suspense fallback={<LoadingShimmer />}>
|
||||
<Show when={!state.has_backed_up}>
|
||||
<ButtonCard
|
||||
red
|
||||
onClick={() => navigate("/settings/backup")}
|
||||
>
|
||||
<div class="flex items-center gap-2">
|
||||
<Save class="inline-block text-neutral-200" />
|
||||
<NiceP>{i18n.t("home.backup")}</NiceP>
|
||||
</div>
|
||||
</ButtonCard>
|
||||
</Show>
|
||||
<Switch>
|
||||
<Match when={activity.latest?.length === 0}>
|
||||
<Show when={state.federations?.length === 0}>
|
||||
@@ -477,17 +488,6 @@ export function CombinedActivity() {
|
||||
</div>
|
||||
</Match>
|
||||
</Switch>
|
||||
<Show when={!state.has_backed_up}>
|
||||
<ButtonCard
|
||||
red
|
||||
onClick={() => navigate("/settings/backup")}
|
||||
>
|
||||
<div class="flex items-center gap-2">
|
||||
<Save class="inline-block text-neutral-200" />
|
||||
<NiceP>{i18n.t("home.backup")}</NiceP>
|
||||
</div>
|
||||
</ButtonCard>
|
||||
</Show>
|
||||
</Suspense>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user