diff --git a/resources/js/store/modules/ui.js b/resources/js/store/modules/ui.js index 7dec3f2..a20e3cb 100644 --- a/resources/js/store/modules/ui.js +++ b/resources/js/store/modules/ui.js @@ -2,6 +2,7 @@ const state = { show_chismosa: false, show_devoluciones: false, show_tags: true, + burger_activa: false, tags_interactuada: false, migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }], canasta_actual: null, @@ -18,10 +19,12 @@ const mutations = { state.show_devoluciones = !state.show_devoluciones; }, toggleTags(state, manual) { - if (manual) - state.tags_interactuada = true; + state.tags_interactuada = manual; state.show_tags = !state.show_tags; }, + toggleBurger(state) { + state.burger_activa = !state.burger_activa; + }, addMiga(state, miga) { state.migas.push(miga); },