feature: send thankscard page
This commit is contained in:
@@ -344,11 +344,15 @@
|
||||
|
||||
await reloadListsSection();
|
||||
} else {
|
||||
alert(result.message || 'Đã xảy ra lỗi. Vui lòng thử lại.');
|
||||
if (window.showToast) {
|
||||
window.showToast(result.message || 'Đã xảy ra lỗi. Vui lòng thử lại.', 'error');
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
alert('Đã xảy ra lỗi kết nối.');
|
||||
if (window.showToast) {
|
||||
window.showToast('Đã xảy ra lỗi kết nối.', 'error');
|
||||
}
|
||||
} finally {
|
||||
if (submitBtn) submitBtn.disabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user