mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Improve ForcePullDialog language
This commit is contained in:
2 files changed
+18
-13
No files matched your search
@@ -14,9 +14,15 @@ interface ForcePullDialogProps {
|
||||
open: boolean;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
onConfirm: () => void;
|
||||
remoteName?: string;
|
||||
}
|
||||
|
||||
export function ForcePullDialog({ open, onOpenChange, onConfirm }: ForcePullDialogProps) {
|
||||
export function ForcePullDialog({
|
||||
open,
|
||||
onOpenChange,
|
||||
onConfirm,
|
||||
remoteName = 'the remote'
|
||||
}: ForcePullDialogProps) {
|
||||
const handleConfirm = () => {
|
||||
onOpenChange(false);
|
||||
onConfirm();
|
||||
@@ -32,17 +38,14 @@ export function ForcePullDialog({ open, onOpenChange, onConfirm }: ForcePullDial
|
||||
</AlertDialogTitle>
|
||||
<AlertDialogDescription className="space-y-3">
|
||||
<p>
|
||||
This will <strong className="text-destructive">permanently discard all local changes</strong> and reset your repository to match the remote.
|
||||
</p>
|
||||
<p className="text-sm">
|
||||
This action cannot be undone. Any uncommitted work will be lost.
|
||||
This will <strong className="text-destructive">completely reset your local repository</strong> to match the repository pushed to <strong>{remoteName}</strong>, permanently deleting all local commits and changes that don't exist on {remoteName}.
|
||||
</p>
|
||||
<div className="rounded-md bg-destructive/10 p-3 text-sm border border-destructive/20">
|
||||
<p className="font-medium text-destructive mb-1">What will happen:</p>
|
||||
<p className="font-medium text-destructive mb-1">What will be deleted:</p>
|
||||
<ul className="list-disc list-inside space-y-1 text-muted-foreground">
|
||||
<li>All local changes will be discarded</li>
|
||||
<li>Repository will reset to remote state</li>
|
||||
<li>Latest changes will be pulled from remote</li>
|
||||
<li>All local commits that haven't been pushed to {remoteName}</li>
|
||||
<li>Any work not available on {remoteName}</li>
|
||||
<li>All uncommitted changes</li>
|
||||
</ul>
|
||||
</div>
|
||||
</AlertDialogDescription>
|
||||
|
||||
Reference in new issue
Block a user