mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
feat: row detail options for hosts and credentials, open manage from sidebar header
This commit is contained in:
1 parent
08db1fcdde
commit
a72aa5b57b
18 files changed
+415
-45
No files matched your search
+8
-4
@@ -55,6 +55,7 @@ import { reconnectDisconnectedTabs } from "@/shell/reconnect-tabs";
|
||||
import { canCloseTab } from "@/shell/tab-close-guards";
|
||||
import {
|
||||
MANAGE_REQUEST_EVENT,
|
||||
type ManageMode,
|
||||
requestFromLegacyEvent,
|
||||
requestManage,
|
||||
} from "@/manage/manage-requests";
|
||||
@@ -2963,10 +2964,13 @@ export function AppShell({
|
||||
|
||||
const dockProps = (view: RailView) => ({
|
||||
title: sidebarTitle(view),
|
||||
onOpenAsTab:
|
||||
!isMobile && promotableIds().includes(view)
|
||||
? () => openSingletonTab(view as TabType)
|
||||
: undefined,
|
||||
onOpenAsTab: isMobile
|
||||
? undefined
|
||||
: view === "hosts" || view === "credentials"
|
||||
? () => requestManage({ kind: "browse", mode: view as ManageMode })
|
||||
: promotableIds().includes(view)
|
||||
? () => openSingletonTab(view as TabType)
|
||||
: undefined,
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user