From 93151e4e5e4776e249d9d824bbdf8f610dbae708 Mon Sep 17 00:00:00 2001 From: EMERALD Date: Tue, 25 Apr 2023 21:20:39 -0500 Subject: Add file picker plugin install, plugin installs to developer page (#405) --- frontend/src/components/modals/PluginInstallModal.tsx | 8 ++++---- frontend/src/components/modals/filepicker/index.tsx | 10 +++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'frontend/src/components/modals') 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 = ({ artifact, version, ha strTitle={`Install ${artifact}`} strOKButtonText={loading ? 'Installing' : 'Install'} > - {hash == 'False' ? ( -

!!!!NO HASH PROVIDED!!!!

- ) : ( - `Are you sure you want to install ${artifact} ${version}?` + Are you sure you want to install {artifact} + {version ? ` ${version}` : ''}? + {hash == 'False' && ( + This plugin does not have a hash, you are installing it at your own risk. )} ); 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 = ({ )} )} - {file.name} + + {file.name} + ); -- cgit v1.2.3