From 68840acbfd0863f5042b60452491c033db7b3f34 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Sun, 15 Dec 2024 18:08:50 +0000 Subject: [PATCH] feat: allow setup button unless validating token --- docs/docs/changelog.md | 1 + plugin/src/ui/settings/TokenChecker.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index ea16d98..d8fb708 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -43,6 +43,7 @@ default Obsidian theme. - Tweaked the onboarding modal to hopefully be more reliable in validating the token and allowing you to save the token. - Greatly reduced plugin startup time. This should improve your vault's load time. +- The setup button in the settings is no longer disabled except when the plugin is validating the token. ## v1.13.0 (2024-04-10) diff --git a/plugin/src/ui/settings/TokenChecker.tsx b/plugin/src/ui/settings/TokenChecker.tsx index 249ad11..b44dac1 100644 --- a/plugin/src/ui/settings/TokenChecker.tsx +++ b/plugin/src/ui/settings/TokenChecker.tsx @@ -53,7 +53,7 @@ export const TokenChecker: React.FC = ({ tester }) => { label={buttonLabel} icon="settings" onClick={openModal} - disabled={tokenState.kind !== "error"} + disabled={tokenState.kind === "in-progress"} /> );