diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-10-20 09:42:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 09:42:33 -0400 |
| commit | 22fd2c9fdd26250fff22a4c1f810eeb8cc4c941d (patch) | |
| tree | 1d7bba55efbbd57e392df1cf420a1f4ec7462e0f /src | |
| parent | f076064a9c064a7e2ca74be013e2174aec8a0a1e (diff) | |
| parent | 5da2f55200bf8edb0acdfb3bbcb821aef31c220d (diff) | |
| download | decky-lsfg-vk-22fd2c9fdd26250fff22a4c1f810eeb8cc4c941d.tar.gz decky-lsfg-vk-22fd2c9fdd26250fff22a4c1f810eeb8cc4c941d.zip | |
Merge pull request #187 from xXJSONDeruloXx/store-prep
Store prep
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/lsfgApi.ts | 1 | ||||
| -rw-r--r-- | src/components/Content.tsx | 4 | ||||
| -rw-r--r-- | src/components/FlatpaksModal.tsx | 40 | ||||
| -rw-r--r-- | src/components/index.ts | 2 |
4 files changed, 44 insertions, 3 deletions
diff --git a/src/api/lsfgApi.ts b/src/api/lsfgApi.ts index d08cd42..dda6c23 100644 --- a/src/api/lsfgApi.ts +++ b/src/api/lsfgApi.ts @@ -103,6 +103,7 @@ export interface FlatpakExtensionStatus { error?: string; installed_23_08: boolean; installed_24_08: boolean; + installed_25_08: boolean; } export interface FlatpakApp { diff --git a/src/components/Content.tsx b/src/components/Content.tsx index 978f4ed..d3c04d3 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -13,7 +13,7 @@ import { ClipboardButton } from "./ClipboardButton"; import { SmartClipboardButton } from "./SmartClipboardButton"; import { FgmodClipboardButton } from "./FgmodClipboardButton"; // import { ClipboardDisplay } from "./ClipboardDisplay"; -import { PluginUpdateChecker } from "./PluginUpdateChecker"; +// import { PluginUpdateChecker } from "./PluginUpdateChecker"; import { NerdStuffModal } from "./NerdStuffModal"; import FlatpaksModal from "./FlatpaksModal"; import { ConfigurationData } from "../config/configSchema"; @@ -139,7 +139,7 @@ export function Content() { <ClipboardButton /> {/* Plugin Update Checker */} - <PluginUpdateChecker /> + {/* <PluginUpdateChecker /> */} {/* Show installation components at bottom when fully installed */} {isInstalled && ( diff --git a/src/components/FlatpaksModal.tsx b/src/components/FlatpaksModal.tsx index bd81013..ae0c333 100644 --- a/src/components/FlatpaksModal.tsx +++ b/src/components/FlatpaksModal.tsx @@ -216,6 +216,46 @@ const FlatpaksModal: FC<FlatpaksModalProps> = ({ closeModal }) => { </ButtonItem> </Field> </PanelSectionRow> + + {/* 25.08 Runtime */} + <PanelSectionRow> + <Field + label="Runtime 25.08" + description={extensionStatus.installed_25_08 ? "Installed" : "Not installed"} + icon={extensionStatus.installed_25_08 ? <FaCheck style={{color: 'green'}} /> : <FaTimes style={{color: 'red'}} />} + > + <ButtonItem + layout="below" + onClick={() => { + const operation = extensionStatus.installed_25_08 ? 'uninstall' : 'install'; + const action = () => handleExtensionOperation(operation, '25.08'); + + if (operation === 'uninstall') { + confirmOperation( + action, + 'Uninstall Runtime Extension', + 'Are you sure you want to uninstall the 25.08 runtime extension?' + ); + } else { + action(); + } + }} + disabled={operationInProgress === 'install-25.08' || operationInProgress === 'uninstall-25.08'} + > + {operationInProgress === 'install-25.08' || operationInProgress === 'uninstall-25.08' ? ( + <Spinner /> + ) : extensionStatus.installed_25_08 ? ( + <> + <FaTrash /> Uninstall + </> + ) : ( + <> + <FaDownload /> Install + </> + )} + </ButtonItem> + </Field> + </PanelSectionRow> </> ) : ( <PanelSectionRow> diff --git a/src/components/index.ts b/src/components/index.ts index 50480be..260d192 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -8,7 +8,7 @@ export { WikiButton } from "./WikiButton"; export { SmartClipboardButton } from "./SmartClipboardButton"; export { FgmodClipboardButton } from "./FgmodClipboardButton"; // export { ClipboardDisplay } from "./ClipboardDisplay"; -export { PluginUpdateChecker } from "./PluginUpdateChecker"; +// export { PluginUpdateChecker } from "./PluginUpdateChecker"; export { NerdStuffModal } from "./NerdStuffModal"; export { default as FlatpaksModal } from "./FlatpaksModal"; export { ProfileManagement } from "./ProfileManagement"; |
