summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals
diff options
context:
space:
mode:
authorEMERALD <hudson.samuels@gmail.com>2023-01-19 20:00:42 -0600
committerGitHub <noreply@github.com>2023-01-19 18:00:42 -0800
commit3ebaac6752cb2b13ee5bfb6274cd7ae60b0d6bcb (patch)
tree70b18b6f9ec2b2e23d2eef374e106a8870e794e8 /frontend/src/components/modals
parentcbbd56486070eab9a08253b2778fcd64877acd68 (diff)
downloaddecky-loader-3ebaac6752cb2b13ee5bfb6274cd7ae60b0d6bcb.tar.gz
decky-loader-3ebaac6752cb2b13ee5bfb6274cd7ae60b0d6bcb.zip
Store and plugin installation visual improvements (#343)v2.5.0-pre1
* Redesign store, add comments for filtering * Improve installation/uninstallation modals * Fix store comment to be easier to fix * Add source code info to about page
Diffstat (limited to 'frontend/src/components/modals')
-rw-r--r--frontend/src/components/modals/PluginInstallModal.tsx17
1 files changed, 8 insertions, 9 deletions
diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx
index dfddc199..f2f13bbf 100644
--- a/frontend/src/components/modals/PluginInstallModal.tsx
+++ b/frontend/src/components/modals/PluginInstallModal.tsx
@@ -1,4 +1,4 @@
-import { ConfirmModal, Navigation, QuickAccessTab, Spinner, staticClasses } from 'decky-frontend-lib';
+import { ConfirmModal, Navigation, QuickAccessTab } from 'decky-frontend-lib';
import { FC, useState } from 'react';
interface PluginInstallModalProps {
@@ -26,15 +26,14 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, ha
onCancel={async () => {
await onCancel();
}}
+ strTitle={`Install ${artifact}`}
+ strOKButtonText={loading ? 'Installing' : 'Install'}
>
- <div className={staticClasses.Title} style={{ flexDirection: 'column' }}>
- {hash == 'False' ? <h3 style={{ color: 'red' }}>!!!!NO HASH PROVIDED!!!!</h3> : null}
- <div style={{ flexDirection: 'row' }}>
- {loading && <Spinner style={{ width: '20px' }} />} {loading ? 'Installing' : 'Install'} {artifact}
- {version ? ' version ' + version : null}
- {!loading && '?'}
- </div>
- </div>
+ {hash == 'False' ? (
+ <h3 style={{ color: 'red' }}>!!!!NO HASH PROVIDED!!!!</h3>
+ ) : (
+ `Are you sure you want to install ${artifact} ${version}?`
+ )}
</ConfirmModal>
);
};