botonDesactivar
This commit is contained in:
parent
3bff6af8dc
commit
98a6617f86
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user