botonDesactivar
This commit is contained in:
parent
3bff6af8dc
commit
98a6617f86
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<b-button
|
||||
:type="data.activo || data.mostrar ? 'is-success' : 'is-danger'"
|
||||
:label="data.activo || data.mostrar ? 'Activo' : 'Inactivo'"
|
||||
@click="
|
||||
$alertsGenericos.imprimirWarning(
|
||||
$buefy,
|
||||
@ -9,9 +10,7 @@
|
||||
)
|
||||
"
|
||||
expanded
|
||||
>
|
||||
{{ data.activo || data.mostrar ? 'Activo' : 'Inactivo' }}
|
||||
</b-button>
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -28,7 +27,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//Al tener un componente global, la data hace referencia ya sea al módulo, carrito o equipo"
|
||||
//Al tener un componente global, la data hace referencia ya sea al módulo, carrito, equipo o cualquier otro en el que se este utilizando"
|
||||
llamarCambiarStatus() {
|
||||
if (this.data.activo || this.data.mostrar)
|
||||
this.cambiarStatus(this.data, false)
|
||||
|
Loading…
Reference in New Issue
Block a user