show popup that address is copied on click

This commit is contained in:
Sergo
2025-12-13 16:06:22 +02:00
parent 6fbe7185b2
commit 9f0cee77e9
3 changed files with 12 additions and 1 deletions

View File

@@ -37,7 +37,11 @@ function deleteAlias(id) {
}
function copyToClipboard(text) {
navigator.clipboard.writeText(text)
navigator.clipboard.writeText(text).then(() => {
const toastElement = document.getElementById('copyToast');
const toast = new bootstrap.Toast(toastElement);
toast.show();
});
}
const defaultTemplate = `