feat: replace native confirm with custom modal to fix auto-close issue
This commit is contained in:
@@ -455,8 +455,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
const confirmResult = confirm('Удалить протокол и всех его клиентов?');
|
||||
if (!confirmResult) return;
|
||||
const confirmed = await showConfirmModal('Удалить протокол и всех его клиентов?', 'Удаление протокола');
|
||||
if (!confirmed) return;
|
||||
const slug = btn.getAttribute('data-slug');
|
||||
const m = document.getElementById('uninstallSpMsg');
|
||||
m.textContent = '';
|
||||
|
||||
Reference in New Issue
Block a user