From e8b59362332f21dce20c90a4dcec04d473c5c515 Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 13 Sep 2025 19:03:05 -0300 Subject: [PATCH] Agregado control para faltantes y sobrantes en store de ui --- resources/js/store/modules/ui/index.ts | 4 ++++ resources/js/store/modules/ui/types.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/resources/js/store/modules/ui/index.ts b/resources/js/store/modules/ui/index.ts index 4777b8d..04c6c20 100644 --- a/resources/js/store/modules/ui/index.ts +++ b/resources/js/store/modules/ui/index.ts @@ -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; }, diff --git a/resources/js/store/modules/ui/types.ts b/resources/js/store/modules/ui/types.ts index 6b7cd86..4d84d2a 100644 --- a/resources/js/store/modules/ui/types.ts +++ b/resources/js/store/modules/ui/types.ts @@ -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,