@mytec: iter10 ready for testing
This commit is contained in:
@@ -2,6 +2,7 @@ import { useRef } from 'react';
|
||||
import { useSitesStore } from '@/store/sites.ts';
|
||||
import { useToastStore } from '@/components/ui/Toast.tsx';
|
||||
import Button from '@/components/ui/Button.tsx';
|
||||
import { logger } from '@/utils/logger.ts';
|
||||
|
||||
/**
|
||||
* Import/Export site configurations as JSON.
|
||||
@@ -95,7 +96,7 @@ export default function SiteImportExport() {
|
||||
const count = await importSites(sitesData);
|
||||
addToast(`Imported ${count} site(s)`, 'success');
|
||||
} catch (error) {
|
||||
console.error('Import failed:', error);
|
||||
logger.error('Import failed:', error);
|
||||
addToast('Invalid JSON file', 'error');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user