Cambiada información de total a chismosa
This commit is contained in:
parent
7c2f592072
commit
86bf66ebcd
2 changed files with 10 additions and 3 deletions
|
@ -23,7 +23,7 @@ export default {
|
|||
|
||||
<template>
|
||||
<div class="navbar-item hide-below-1024">
|
||||
<p v-if="pedidoDefinido">{{ `${nombre} - Monto total: ${montoTotal}` }}</p>
|
||||
<p v-if="pedidoDefinido">{{ `${nombre}` }}</p>
|
||||
<chismosa-dropdown
|
||||
v-if="pedidoDefinido"
|
||||
class="hide-above-1023"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<span class="icon is-small mr-1">
|
||||
<img src="/assets/chismosa.png">
|
||||
</span>
|
||||
<span v-text="'$' + total"/>
|
||||
<span v-text="textoChismosa"/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,7 +13,7 @@
|
|||
|
||||
<script>
|
||||
import Chismosa from './Chismosa.vue'
|
||||
import { mapMutations, mapState } from "vuex";
|
||||
import { mapGetters, mapMutations, mapState } from "vuex";
|
||||
export default {
|
||||
components: {
|
||||
Chismosa
|
||||
|
@ -27,6 +27,13 @@ export default {
|
|||
computed: {
|
||||
...mapState('pedido',["total"]),
|
||||
...mapState('ui',["show_chismosa"]),
|
||||
...mapState('login', ["rol"]),
|
||||
...mapGetters('ollas', ["montoTotal"]),
|
||||
textoChismosa() {
|
||||
if (this.rol === 'ollas')
|
||||
return `$${this.total} / $${this.montoTotal}`;
|
||||
return `$${this.total}`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
...mapMutations('ui',["toggleChismosa"]),
|
||||
|
|
Loading…
Add table
Reference in a new issue