showModal(ImportExportModal => openImportExportTab

This commit is contained in:
SPRINX0\prochazka
2024-09-16 13:03:49 +02:00
parent d255273368
commit a9a5a3491e
9 changed files with 82 additions and 34 deletions

View File

@@ -60,6 +60,7 @@
import { showSnackbarError } from '../utility/snackbar';
import useEffect from '../utility/useEffect';
import useTimerLabel from '../utility/useTimerLabel';
import { openImportExportTab } from '../utility/importExportTools';
export let tabid;
@@ -156,7 +157,8 @@
export function openWizard() {
const jsonTextMatch = ($editorValue || '').match(configRegex);
if (jsonTextMatch) {
showModal(ImportExportModal, { initialValues: JSON.parse(jsonTextMatch[1]) });
openImportExportTab(JSON.parse(jsonTextMatch[1]));
// showModal(ImportExportModal, { initialValues: JSON.parse(jsonTextMatch[1]) });
} else {
showSnackbarError('No wizard info found');
}