mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
fix: accept the release .sig when installing a plugin from a file
This commit is contained in:
1 parent
3def536dcc
commit
b32203d19b
7 files changed
+146
-17
No files matched your search
@@ -333,11 +333,17 @@ export function usePluginsManager() {
|
||||
[run, t, failToast],
|
||||
);
|
||||
|
||||
/** Reads a picked .tmxplug and asks for consent before anything loads. */
|
||||
/**
|
||||
* Reads a picked .tmxplug, with its .sig when one was picked too, and asks
|
||||
* for consent before anything loads.
|
||||
*/
|
||||
const requestUpload = useCallback(
|
||||
async (file: File) => {
|
||||
async (file: File, signatureFile?: File) => {
|
||||
try {
|
||||
const preview = await uploadPlugin(file);
|
||||
const preview = await uploadPlugin(
|
||||
file,
|
||||
signatureFile ? await signatureFile.text() : undefined,
|
||||
);
|
||||
setConsent({
|
||||
plugin: uploadEntry(preview),
|
||||
mode: "upload",
|
||||
|
||||
Reference in new issue
Block a user