From 078e29a01fbb473127c1ceb2c262432307d982a6 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Sat, 31 Aug 2024 23:03:09 -0300 Subject: [PATCH] Desactivar botones de producto cuando no hacen nada --- resources/js/components/ProductoCard.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/js/components/ProductoCard.vue b/resources/js/components/ProductoCard.vue index cdda278..1ff21b5 100644 --- a/resources/js/components/ProductoCard.vue +++ b/resources/js/components/ProductoCard.vue @@ -35,6 +35,12 @@ export default { this.producto.cantidad = cantidad; this.enChismosa = cantidad; }, + hayCambios() { + return this.cantidad != this.enChismosa; + }, + puedeBorrar() { + return this.enChismosa > 0; + }, } } @@ -70,12 +76,12 @@ export default { - -