mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
#591 - sites
This commit is contained in:
@ -13,6 +13,7 @@ import DateTime from '@/components/date-time';
|
||||
import CopyableBadge from '@/components/copyable-badge';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import React, { useState } from 'react';
|
||||
import DeleteServer from '@/pages/servers/components/delete-server';
|
||||
|
||||
export default function Databases() {
|
||||
const page = usePage<{
|
||||
@ -208,6 +209,22 @@ export default function Databases() {
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<Card className="border-destructive/50">
|
||||
<CardHeader>
|
||||
<CardTitle>Delete server</CardTitle>
|
||||
<CardDescription>Here you can delete the server.</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="space-y-2 p-4">
|
||||
<p>please note that this action is irreversible and will delete all data associated with the server.</p>
|
||||
|
||||
<DeleteServer server={page.props.server}>
|
||||
<Button variant="destructive">Delete server</Button>
|
||||
</DeleteServer>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Container>
|
||||
</ServerLayout>
|
||||
);
|
||||
|
Reference in New Issue
Block a user