added disk restore only and changed UI
This commit is contained in:
@@ -10,7 +10,7 @@ export function RestoreModal({ snapshot, vmName, confirmText, onCancel, onConfir
|
||||
<div className="flex items-center justify-between border-b border-red-950 px-4 py-3">
|
||||
<div className="flex items-center gap-2 text-red-300">
|
||||
<AlertTriangle className="h-5 w-5" />
|
||||
<h2 className="text-sm font-semibold">Destructive Restore</h2>
|
||||
<h2 className="text-sm font-semibold">Destructive Disk Restore</h2>
|
||||
</div>
|
||||
<button className="rounded-md p-1 text-zinc-400 hover:text-zinc-100" onClick={onCancel} type="button">
|
||||
<X className="h-5 w-5" />
|
||||
@@ -18,8 +18,8 @@ export function RestoreModal({ snapshot, vmName, confirmText, onCancel, onConfir
|
||||
</div>
|
||||
<div className="space-y-4 p-4">
|
||||
<p className="text-sm leading-6 text-zinc-300">
|
||||
Warning: The VM will be stopped and the current disk will be irreversibly overwritten with
|
||||
snapshot <span className="font-mono text-red-200">{snapshot.id.slice(0, 8)}</span>.
|
||||
Warning: The VM will be stopped and its current disk will be irreversibly overwritten with
|
||||
snapshot <span className="font-mono text-red-200">{snapshot.id.slice(0, 8)}</span>. Incus config, profiles, devices, and metadata are not restored by this action.
|
||||
</p>
|
||||
<label className="block text-sm text-zinc-300">
|
||||
Type <span className="font-mono text-zinc-100">{vmName}</span> to confirm.
|
||||
@@ -39,7 +39,7 @@ export function RestoreModal({ snapshot, vmName, confirmText, onCancel, onConfir
|
||||
onClick={onConfirm}
|
||||
type="button"
|
||||
>
|
||||
Confirm Restore
|
||||
Confirm Disk Restore
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user