mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -15,6 +15,7 @@ import { DropdownMenuItem } from '@/components/ui/dropdown-menu';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { LoaderCircleIcon } from 'lucide-react';
|
||||
import FormSuccessful from '@/components/form-successful';
|
||||
import InputError from '@/components/ui/input-error';
|
||||
|
||||
export function Action({ type, service }: { type: 'start' | 'stop' | 'restart' | 'enable' | 'disable'; service: Service }) {
|
||||
const [open, setOpen] = useState(false);
|
||||
@ -41,7 +42,12 @@ export function Action({ type, service }: { type: 'start' | 'stop' | 'restart' |
|
||||
</DialogTitle>
|
||||
<DialogDescription className="sr-only">{type} service</DialogDescription>
|
||||
</DialogHeader>
|
||||
<p className="p-4">Are you sure you want to {type} the service?</p>
|
||||
<div className="space-y-2 p-4">
|
||||
<p>Are you sure you want to {type} the service?</p>
|
||||
{Object.entries(form.errors).map(([key, value]) => (
|
||||
<InputError key={key} message={value} />
|
||||
))}
|
||||
</div>
|
||||
<DialogFooter>
|
||||
<DialogClose asChild>
|
||||
<Button variant="outline">Cancel</Button>
|
||||
|
Reference in New Issue
Block a user