Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add link to guide from migrate page, link to standard backup page #1041

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions frontend/src/screens/BackupNode.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { InfoCircledIcon } from "@radix-ui/react-icons";
import { AlertTriangleIcon } from "lucide-react";
import { AlertTriangleIcon, ExternalLinkIcon } from "lucide-react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";

import Container from "src/components/Container";
import ExternalLink from "src/components/ExternalLink";
import SettingsHeader from "src/components/SettingsHeader";
import { Alert, AlertDescription, AlertTitle } from "src/components/ui/alert";
import { Button } from "src/components/ui/button";
import { Button, LinkButton } from "src/components/ui/button";
import { Input } from "src/components/ui/input";
import { Label } from "src/components/ui/label";
import { LoadingButton } from "src/components/ui/loading-button";
Expand Down Expand Up @@ -109,6 +110,15 @@ export function BackupNode() {
again to restore your backup.
</AlertDescription>
</Alert>
<div className="mb-5">
<ExternalLink
className="underline flex items-center"
to="https://guides.getalby.com/user-guide/alby-account-and-browser-extension/alby-hub/faq-alby-hub/how-can-i-migrate-alby-hub-to-a-different-machine"
>
Learn more about migrating your node
<ExternalLinkIcon className="w-4 h-4 ml-2" />
</ExternalLink>
</div>
{showPasswordScreen ? (
<Container>
<h1 className="text-xl font-medium">Enter unlock password</h1>
Expand All @@ -135,7 +145,7 @@ export function BackupNode() {
</form>
</Container>
) : (
<div className="flex justify-center">
<div className="flex flex-col gap-5 items-center justify-center">
<Button
type="submit"
disabled={loading}
Expand All @@ -145,6 +155,15 @@ export function BackupNode() {
>
Create Backup To Migrate Node
</Button>
<p className="text-muted-foreground">or</p>
<LinkButton
to="/settings/backup"
variant="secondary"
size="lg"
className="w-full"
>
Backup Without Migrating Node
</LinkButton>
</div>
)}
</>
Expand Down
Loading