Actualizar proveedores.html
This commit is contained in:
@@ -526,15 +526,13 @@
|
||||
|
||||
card.onclick = (e) => {
|
||||
if (e.target.closest('a') || e.target.closest('button')) return;
|
||||
if (isArchived) {
|
||||
showToast("⚠️ Este servicio está ARCHIVADO.", true);
|
||||
} else if (isLocked) {
|
||||
if (isLocked) {
|
||||
card.classList.remove('shake');
|
||||
void card.offsetWidth;
|
||||
card.classList.add('shake');
|
||||
showToast(`🔒 ${lockedMsg}`, true);
|
||||
} else {
|
||||
openEditor(svc.id);
|
||||
openEditor(svc.id, isArchived); // Pasamos si está archivado o no
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user