cambio a pagado

This commit is contained in:
Alejandro Tasistro 2024-07-11 19:54:56 -03:00
parent 9781d63a60
commit 475d2a6cd9

View file

@ -1,8 +1,8 @@
<template> <template>
<div class="field"> <div class="field">
<input type="checkbox" name="switchRoundedSuccess" class="switch is-rounded is-success" <input type="checkbox" name="switchRoundedSuccess" class="switch is-rounded is-success"
:id="'switch'+this.pedido.id" :id="'switch'+this.pedido.id"
:checked="pedido.aprobado" :checked="pedido.aprobado"
@change="toggleAprobacion"> @change="toggleAprobacion">
<label :for="'switch'+this.pedido.id"> <label :for="'switch'+this.pedido.id">
<span class="is-hidden-mobile">{{ mensaje }}</span> <span class="is-hidden-mobile">{{ mensaje }}</span>
@ -23,7 +23,7 @@ export default {
}, },
computed: { computed: {
mensaje: function () { mensaje: function () {
return this.aprobado ? "Aprobado" : "No aprobado" return this.aprobado ? "Pagado" : "No pagado"
} }
}, },
methods: { methods: {