mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: load plugin frontends at runtime and remove plugin ids from the shell
This commit is contained in:
1 parent
49f0286a14
commit
e88d5a52e3
721 files changed
+54265
-44416
No files matched your search
@@ -405,14 +405,10 @@ export function AdminUserManagePanel({
|
||||
if (editor) {
|
||||
const isHost = editor.kind === "host";
|
||||
const tabs = isHost
|
||||
? makeHostTabs(t).filter((tab) => {
|
||||
if (tab.id === "general") return true;
|
||||
if (tab.id === "ssh") return editorProtocols.enableSsh;
|
||||
if (tab.id === "rdp") return editorProtocols.enableRdp;
|
||||
if (tab.id === "vnc") return editorProtocols.enableVnc;
|
||||
if (tab.id === "telnet") return editorProtocols.enableTelnet;
|
||||
return false;
|
||||
})
|
||||
? makeHostTabs(
|
||||
t,
|
||||
editorProtocols as unknown as Record<string, boolean>,
|
||||
).filter((tab) => tab.id !== "ssh" || editorProtocols.enableSsh)
|
||||
: makeCredentialTabs(t);
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user