up
This commit is contained in:
+7
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user