WIP: funcion/faltantes-y-sobrantes #52

Draft
atasistro wants to merge 39 commits from funcion/faltantes-y-sobrantes into master
2 changed files with 8 additions and 0 deletions
Showing only changes of commit a6f726f8a0 - Show all commits

View file

@ -70,6 +70,7 @@ const actions = {
const pedido = { pedido_id: data.id };
dispatch("productos/init", null, { root: true });
dispatch("pedido/elegirPedido", pedido, { root: true });
dispatch("ui/migasFaltantesYSobrantes", null, { root: true });
dispatch("ui/toggleFaltantesYSobrantes", null, { root: true });
}
};

View file

@ -45,6 +45,10 @@ const mutations = {
migasOllas(state) {
state.migas.reverse().pop();
},
migasFaltantesYSobrantes(state) {
const migaAdmin = { nombre: 'Administración', action: 'ui/toggleFaltantesYSobrantes' }
state.migas[0] = migaAdmin;
}
};
const actions = {
@ -86,6 +90,9 @@ const actions = {
},
toggleFaltantesYSobrantes({ commit }) {
commit("toggleFaltantesYSobrantes");
},
migasFaltantesYSobrantes({ commit }) {
commit("migasFaltantesYSobrantes");
}
};