From 45cd2d4ef7bf38ecd8d1d57c4170b9dbaa912c8c Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Sat, 1 Aug 2026 16:54:06 -0400 Subject: fix: harden v2 migration and Flatpak updates --- src/components/InstallationButton.tsx | 58 ++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 22 deletions(-) (limited to 'src/components') diff --git a/src/components/InstallationButton.tsx b/src/components/InstallationButton.tsx index 40ba955..de7d454 100644 --- a/src/components/InstallationButton.tsx +++ b/src/components/InstallationButton.tsx @@ -16,15 +16,24 @@ export function InstallationButton({ onInstall, onUninstall }: InstallationButtonProps) { - const renderButtonContent = () => { + const renderInstallButtonContent = () => { if (isInstalling) { return (
-
Installing...
+
{isInstalled ? "Updating..." : "Installing..."}
); } + return ( +
+ +
{isInstalled ? "Update LSFG-VK" : "Install / Update LSFG-VK"}
+
+ ); + }; + + const renderUninstallButtonContent = () => { if (isUninstalling) { return (
@@ -33,32 +42,37 @@ export function InstallationButton({ ); } - if (isInstalled) { - return ( -
- -
Uninstall LSFG-VK
-
- ); - } - return (
- -
Install / Update LSFG-VK
+ +
Uninstall LSFG-VK
); }; return ( - - - {renderButtonContent()} - - + <> + + + {renderInstallButtonContent()} + + + + {isInstalled && ( + + + {renderUninstallButtonContent()} + + + )} + ); } -- cgit v1.2.3