botonDesactivar

This commit is contained in:
Andres2908 2022-07-22 16:58:11 -05:00
parent 3bff6af8dc
commit 98a6617f86

View File

@ -1,6 +1,7 @@
<template> <template>
<b-button <b-button
:type="data.activo || data.mostrar ? 'is-success' : 'is-danger'" :type="data.activo || data.mostrar ? 'is-success' : 'is-danger'"
:label="data.activo || data.mostrar ? 'Activo' : 'Inactivo'"
@click=" @click="
$alertsGenericos.imprimirWarning( $alertsGenericos.imprimirWarning(
$buefy, $buefy,
@ -9,9 +10,7 @@
) )
" "
expanded expanded
> />
{{ data.activo || data.mostrar ? 'Activo' : 'Inactivo' }}
</b-button>
</template> </template>
<script> <script>
@ -28,7 +27,7 @@ export default {
} }
}, },
methods: { 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() { llamarCambiarStatus() {
if (this.data.activo || this.data.mostrar) if (this.data.activo || this.data.mostrar)
this.cambiarStatus(this.data, false) this.cambiarStatus(this.data, false)