Agregado control para faltantes y sobrantes en store de ui
This commit is contained in:
parent
d7cef79a50
commit
e8b5936233
2 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@ const state: UiState = {
|
|||
show_chismosa: false,
|
||||
show_devoluciones: false,
|
||||
show_tags: true,
|
||||
show_faltantes_y_sobrantes: false,
|
||||
burger_activa: false,
|
||||
tags_interactuada: false,
|
||||
migas: [{ nombre: 'Pedidos', action: 'pedido/resetear' }],
|
||||
|
@ -24,6 +25,9 @@ const mutations = {
|
|||
state.tags_interactuada = manual;
|
||||
state.show_tags = !state.show_tags;
|
||||
},
|
||||
toggleFaltantesYSobrantes(state) {
|
||||
state.show_faltantes_y_sobrantes = !state.show_faltantes_y_sobrantes;
|
||||
},
|
||||
toggleBurger(state) {
|
||||
state.burger_activa = !state.burger_activa;
|
||||
},
|
||||
|
|
|
@ -3,6 +3,8 @@ export interface UiState {
|
|||
show_chismosa: boolean,
|
||||
show_devoluciones: boolean,
|
||||
show_tags: boolean,
|
||||
show_faltantes_y_sobrantes: boolean,
|
||||
burger_activa: boolean,
|
||||
tags_interactuada: boolean,
|
||||
migas: Miga[],
|
||||
canasta_actual?: DatosCanasta,
|
||||
|
|
Loading…
Add table
Reference in a new issue