summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals
diff options
context:
space:
mode:
authorEMERALD <hudson.samuels@gmail.com>2023-04-25 21:20:39 -0500
committerGitHub <noreply@github.com>2023-04-25 19:20:39 -0700
commit93151e4e5e4776e249d9d824bbdf8f610dbae708 (patch)
treed3e1ad2b41573a835e91f07359afb6a77d518c92 /frontend/src/components/modals
parentd6f336d84b8b00161a688d4b39b82165a3ebe1f3 (diff)
downloaddecky-loader-93151e4e5e4776e249d9d824bbdf8f610dbae708.tar.gz
decky-loader-93151e4e5e4776e249d9d824bbdf8f610dbae708.zip
Add file picker plugin install, plugin installs to developer page (#405)v2.7.3-pre1
Diffstat (limited to 'frontend/src/components/modals')
-rw-r--r--frontend/src/components/modals/PluginInstallModal.tsx8
-rw-r--r--frontend/src/components/modals/filepicker/index.tsx10
2 files changed, 13 insertions, 5 deletions
diff --git a/frontend/src/components/modals/PluginInstallModal.tsx b/frontend/src/components/modals/PluginInstallModal.tsx
index f2f13bbf..7f0683ee 100644
--- a/frontend/src/components/modals/PluginInstallModal.tsx
+++ b/frontend/src/components/modals/PluginInstallModal.tsx
@@ -29,10 +29,10 @@ const PluginInstallModal: FC<PluginInstallModalProps> = ({ artifact, version, ha
strTitle={`Install ${artifact}`}
strOKButtonText={loading ? 'Installing' : 'Install'}
>
- {hash == 'False' ? (
- <h3 style={{ color: 'red' }}>!!!!NO HASH PROVIDED!!!!</h3>
- ) : (
- `Are you sure you want to install ${artifact} ${version}?`
+ Are you sure you want to install {artifact}
+ {version ? ` ${version}` : ''}?
+ {hash == 'False' && (
+ <span style={{ color: 'red' }}> This plugin does not have a hash, you are installing it at your own risk.</span>
)}
</ConfirmModal>
);
diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx
index dcf179a3..ec3fc260 100644
--- a/frontend/src/components/modals/filepicker/index.tsx
+++ b/frontend/src/components/modals/filepicker/index.tsx
@@ -134,7 +134,15 @@ const FilePicker: FunctionComponent<FilePickerProps> = ({
)}
</div>
)}
- {file.name}
+ <span
+ style={{
+ textOverflow: 'ellipsis',
+ overflow: 'hidden',
+ textAlign: 'left',
+ }}
+ >
+ {file.name}
+ </span>
</div>
</DialogButton>
);