Confirm and close after import
This commit is contained in:
parent
34915b9459
commit
f0ad94aa37
@ -274,6 +274,8 @@ async function handleImport(event) {
|
||||
localStorage.setItem('crochetCounters', JSON.stringify(projects));
|
||||
applyTheme();
|
||||
render();
|
||||
closeSaveModal();
|
||||
await showAlert({ title: 'Import complete', text: `${projects.length} project${projects.length === 1 ? '' : 's'} loaded.` });
|
||||
} catch (err) {
|
||||
showAlert({ title: 'Import failed', text: err.message });
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user