Movida logica de burger a modulo ui
This commit is contained in:
parent
53414643a6
commit
0397810260
1 changed files with 5 additions and 2 deletions
7
resources/js/store/modules/ui.js
vendored
7
resources/js/store/modules/ui.js
vendored
|
@ -2,6 +2,7 @@ const state = {
|
||||||
show_chismosa: false,
|
show_chismosa: false,
|
||||||
show_devoluciones: false,
|
show_devoluciones: false,
|
||||||
show_tags: true,
|
show_tags: true,
|
||||||
|
burger_activa: false,
|
||||||
tags_interactuada: false,
|
tags_interactuada: false,
|
||||||
migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }],
|
migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }],
|
||||||
canasta_actual: null,
|
canasta_actual: null,
|
||||||
|
@ -18,10 +19,12 @@ const mutations = {
|
||||||
state.show_devoluciones = !state.show_devoluciones;
|
state.show_devoluciones = !state.show_devoluciones;
|
||||||
},
|
},
|
||||||
toggleTags(state, manual) {
|
toggleTags(state, manual) {
|
||||||
if (manual)
|
state.tags_interactuada = manual;
|
||||||
state.tags_interactuada = true;
|
|
||||||
state.show_tags = !state.show_tags;
|
state.show_tags = !state.show_tags;
|
||||||
},
|
},
|
||||||
|
toggleBurger(state) {
|
||||||
|
state.burger_activa = !state.burger_activa;
|
||||||
|
},
|
||||||
addMiga(state, miga) {
|
addMiga(state, miga) {
|
||||||
state.migas.push(miga);
|
state.migas.push(miga);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue