mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
Export and Import vito settings (#606)
* Export and Import vito settings * fix tests
This commit is contained in:
15
resources/js/pages/vito-settings/components/export.tsx
Normal file
15
resources/js/pages/vito-settings/components/export.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { DownloadIcon } from 'lucide-react';
|
||||
|
||||
export default function ExportVito() {
|
||||
const submit = () => {
|
||||
window.open(route('vito-settings.export'), '_blank');
|
||||
};
|
||||
|
||||
return (
|
||||
<Button onClick={submit}>
|
||||
<DownloadIcon />
|
||||
Export
|
||||
</Button>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user