From f932f66933685a936f1866cb2852f5c9e4e451eb Mon Sep 17 00:00:00 2001 From: Vasil Dimitrov Date: Tue, 23 Jul 2024 14:23:57 +0300 Subject: [PATCH] Disabled export when changes available --- src/routes/_index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_index.tsx b/src/routes/_index.tsx index 7b261d5..3550674 100644 --- a/src/routes/_index.tsx +++ b/src/routes/_index.tsx @@ -40,7 +40,7 @@ export default function Index() { {({ isRemoveDisabled, onRemoveSelected, hasChanges, getChangedComponents }) => { const actions = [ { key: 'import', name: 'Import', onSelect: () => {} }, - { key: 'export', name: 'Export', onSelect: () => {} }, + { key: 'export', name: 'Export', disabled: hasChanges, onSelect: () => {} }, { ...removeAction, disabled: isRemoveDisabled, onSelect: onRemoveSelected }, ];