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