This commit is contained in:
lizandrogd
2026-01-21 02:22:29 -05:00
parent 3fffb0d023
commit b1961f0116
35 changed files with 1006 additions and 122 deletions
+7 -3
View File
@@ -1245,9 +1245,13 @@ class WhatsAppBotManager {
try {
this.showLoading('Eliminando plantilla...');
// Por ahora usaremos update_template_status para marcar como eliminada
// En el futuro se puede crear delete_template.php
this.showError('Función de eliminar aún no implementada');
const result = await this.apiCall('delete_template.php', 'POST', { id: templateId });
if (result && result.success) {
this.showSuccess('Plantilla eliminada');
this.loadTemplates();
} else {
this.showError(result.error || 'Error eliminando plantilla');
}
} catch (error) {
this.showError('Error eliminando plantilla: ' + error.message);
} finally {