mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-15 22:38:31 +01:00
12 lines
419 B
JavaScript
12 lines
419 B
JavaScript
|
import {showInfoToast, showWarningToast, showErrorToast} from '../modules/toast.js';
|
||
|
|
||
|
document.getElementById('info-toast').addEventListener('click', () => {
|
||
|
showInfoToast('success 😀');
|
||
|
});
|
||
|
document.getElementById('warning-toast').addEventListener('click', () => {
|
||
|
showWarningToast('warning 😐');
|
||
|
});
|
||
|
document.getElementById('error-toast').addEventListener('click', () => {
|
||
|
showErrorToast('error 🙁');
|
||
|
});
|