Compare commits

..

No commits in common. "37cebf11ee09a961ffb54ad0a8ebd73cb0657756" and "ca4dd862d0a004a958667fe16ff12498633a318d" have entirely different histories.

2 changed files with 3 additions and 2 deletions

View file

@ -65,7 +65,7 @@ const actions = {
await axios.post(`/api/grupos-de-compra/${state.grupo_de_compra_id}/${caracteristica_id}`); await axios.post(`/api/grupos-de-compra/${state.grupo_de_compra_id}/${caracteristica_id}`);
commit('toggleCaracteristica', { caracteristica_id: caracteristica_id }) commit('toggleCaracteristica', { caracteristica_id: caracteristica_id })
}, },
async abrirFaltantesYSobrantes({ dispatch }) { async abrirFaltantesYSobrantes({ commit, dispatch }) {
const { data } = await axios.get(`/admin/${state.grupo_de_compra_id}/faltantes-y-sobrantes`) const { data } = await axios.get(`/admin/${state.grupo_de_compra_id}/faltantes-y-sobrantes`)
const pedido = { pedido_id: data.id }; const pedido = { pedido_id: data.id };
dispatch("productos/init", null, { root: true }); dispatch("productos/init", null, { root: true });

View file

@ -46,7 +46,8 @@ const mutations = {
state.migas.reverse().pop(); state.migas.reverse().pop();
}, },
migasFaltantesYSobrantes(state) { migasFaltantesYSobrantes(state) {
state.migas[0] = { nombre: 'Administración', action: 'ui/toggleFaltantesYSobrantes' }; const migaAdmin = { nombre: 'Administración', action: 'ui/toggleFaltantesYSobrantes' }
state.migas[0] = migaAdmin;
} }
}; };