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 { - -