Agregado control para faltantes y sobrantes en store de ui

This commit is contained in:
Alejandro Tasistro 2025-09-13 19:03:05 -03:00
parent d7cef79a50
commit e8b5936233
2 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,7 @@ const state: UiState = {
show_chismosa: false, show_chismosa: false,
show_devoluciones: false, show_devoluciones: false,
show_tags: true, show_tags: true,
show_faltantes_y_sobrantes: false,
burger_activa: false, burger_activa: false,
tags_interactuada: false, tags_interactuada: false,
migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }], migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }],
@ -24,6 +25,9 @@ const mutations = {
state.tags_interactuada = manual; state.tags_interactuada = manual;
state.show_tags = !state.show_tags; state.show_tags = !state.show_tags;
}, },
toggleFaltantesYSobrantes(state) {
state.show_faltantes_y_sobrantes = !state.show_faltantes_y_sobrantes;
},
toggleBurger(state) { toggleBurger(state) {
state.burger_activa = !state.burger_activa; state.burger_activa = !state.burger_activa;
}, },

View file

@ -3,6 +3,8 @@ export interface UiState {
show_chismosa: boolean, show_chismosa: boolean,
show_devoluciones: boolean, show_devoluciones: boolean,
show_tags: boolean, show_tags: boolean,
show_faltantes_y_sobrantes: boolean,
burger_activa: boolean,
tags_interactuada: boolean, tags_interactuada: boolean,
migas: Miga[], migas: Miga[],
canasta_actual?: DatosCanasta, canasta_actual?: DatosCanasta,