usando pedido definido
This commit is contained in:
parent
f4560c0be5
commit
f92084d399
1 changed files with 7 additions and 8 deletions
|
@ -4,15 +4,12 @@
|
|||
<a class="navbar-item" href="https://mps.org.uy">
|
||||
<img src="/assets/logoMPS.png" height="28">
|
||||
</a>
|
||||
<!-- Styles nombre del barrio-->
|
||||
<p class="navbar-item hide-below-1024">
|
||||
<slot name="gdc"></slot>
|
||||
</p>
|
||||
<p class="navbar-item">
|
||||
<slot name="subpedido"></slot>
|
||||
</p>
|
||||
<chismosa-dropdown
|
||||
v-if="this.$root.pedido != null"
|
||||
v-if="pedidoDefinido"
|
||||
class="hide-above-1023"
|
||||
id="mobile">
|
||||
</chismosa-dropdown>
|
||||
|
@ -25,7 +22,7 @@
|
|||
</div>
|
||||
<div class="navbar-menu" :class="{'is-active':burgerActiva}">
|
||||
<div class="navbar-end">
|
||||
<div v-if="this.$root.pedido != null" class="navbar-item field has-addons mt-2 mr-3">
|
||||
<div v-if="pedidoDefinido" class="navbar-item field has-addons mt-2 mr-3">
|
||||
<a class="button is-small has-text-dark-grey" @click.capture="buscar">
|
||||
<span class="icon">
|
||||
<i class="fas fa-search"></i>
|
||||
|
@ -35,7 +32,7 @@
|
|||
@keyup.enter="buscar">
|
||||
</div>
|
||||
<chismosa-dropdown
|
||||
v-if="this.$root.pedido != null"
|
||||
v-if="pedidoDefinido"
|
||||
class="hide-below-1024"
|
||||
id="wide">
|
||||
</chismosa-dropdown>
|
||||
|
@ -53,7 +50,7 @@
|
|||
|
||||
<script>
|
||||
import ChismosaDropdown from '../pedidos/ChismosaDropdown.vue';
|
||||
import { mapActions } from "vuex";
|
||||
import { mapActions, mapGetters } from "vuex";
|
||||
|
||||
export default {
|
||||
components: { ChismosaDropdown },
|
||||
|
@ -63,6 +60,9 @@ export default {
|
|||
searchString: "",
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('pedido',["pedidoDefinido"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions('productos', ["filtrarProductos"]),
|
||||
toggleBurger() {
|
||||
|
@ -73,7 +73,6 @@ export default {
|
|||
this.toggleBurger();
|
||||
this.filtrarProductos({ filtro: "nombre", valor: this.searchString });
|
||||
Event.$emit('migas-agregar', { nombre: this.searchString });
|
||||
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue