funcion/pedido-ollas #47

Merged
rho merged 92 commits from funcion/pedido-ollas into master 2025-07-15 11:27:30 -03:00
2 changed files with 1 additions and 6 deletions
Showing only changes of commit ee96d89e55 - Show all commits

View file

@ -1,5 +1,4 @@
<script>
import { mapActions, mapGetters, mapState } from "vuex";
export default {
name: "CantidadOllas",
data() {

View file

@ -1,6 +1,6 @@
<template>
<nav class="breadcrumb is-centered has-background-danger-light is-fixed-top"
aria-label="breadcrumbs" v-show="visible">
aria-label="breadcrumbs">
<ul class="mt-4">
<li v-for="(miga, i) in migas" :key="i" :class="{'is-active': i === migaActiva}">
<a @click="clickMiga({ miga: miga })"
@ -17,15 +17,11 @@ import { mapActions, mapMutations, mapState } from "vuex";
export default {
methods: {
...mapActions('productos', ["getProductos"]),
...mapActions('ui', ["clickMiga"]),
...mapMutations('ui', ["addMiga"]),
},
computed: {
...mapState('ui', ["migas"]),
visible() {
return this.migas.length > 0;
},
migaActiva() {
return this.migas.length - 1;
},