From 94a39925d516f7bd82b978992a23c6280be45ee6 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 31 Jul 2023 12:46:32 +0300 Subject: [PATCH] ELT: disable reload button by $process --- .../Calculation/Form/ELT/Components/ReloadButton.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx b/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx index ed142cd..3514419 100644 --- a/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx +++ b/apps/web/Components/Calculation/Form/ELT/Components/ReloadButton.tsx @@ -7,7 +7,7 @@ import { Flex } from 'ui/grid'; export const ReloadButton = observer( ({ storeSelector, onClick }: { onClick: () => void; storeSelector: StoreSelector }) => { - const { $tables } = useStore(); + const { $tables, $process } = useStore(); const { validation, getRows: rows } = storeSelector($tables.elt); const hasErrors = validation.hasErrors; @@ -16,7 +16,12 @@ export const ReloadButton = observer(