mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
feat: shell can open a saved host's editor for plugins (Plugin-SSH-Terminal#36)
This commit is contained in:
1 parent
cc2223d69e
commit
8da88b906b
4 files changed
+10
No files matched your search
@@ -173,6 +173,10 @@ export function ShellControllerProvider({
|
||||
},
|
||||
openHostEditor: (draft) =>
|
||||
requestManage({ kind: "host", hostId: null, draft }),
|
||||
editHost: (hostId) => {
|
||||
requestManage({ kind: "host", hostId });
|
||||
if (isMobile) regions.left.setOpen(false);
|
||||
},
|
||||
saveQuickConnect: tabsState.saveQuickConnectHost,
|
||||
confirm: (options) =>
|
||||
confirmRef.current ? confirmRef.current(options) : Promise.resolve(false),
|
||||
@@ -196,6 +200,7 @@ export function ShellControllerProvider({
|
||||
closeRailView: (...args) => shellImplRef.current.closeRailView(...args),
|
||||
openHostEditor: (...args) =>
|
||||
shellImplRef.current.openHostEditor?.(...args),
|
||||
editHost: (...args) => shellImplRef.current.editHost?.(...args),
|
||||
saveQuickConnect: (...args) =>
|
||||
shellImplRef.current.saveQuickConnect!(...args),
|
||||
confirm: (...args) => shellImplRef.current.confirm!(...args),
|
||||
|
||||
Reference in new issue
Block a user