Use toast notifications over JavaScript alerts (#37)

Implement UI toast notifications
This commit is contained in:
Elias Benbourenane
2025-01-31 19:31:59 -05:00
committed by GitHub
parent 99b4a3152d
commit 1b9b7e203e
5 changed files with 67 additions and 12 deletions

View File

@@ -268,9 +268,9 @@
if (!response.ok) throw new Error(await response.text());
alert('Configuration saved successfully!');
createToast('Configuration saved successfully!');
} catch (error) {
alert(`Error saving configuration: ${error.message}`);
createToast(`Error saving configuration: ${error.message}`, 'error');
}
});