mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-14 20:33:39 +00:00
This reverts commit 0712fdd731.
This commit is contained in:
@@ -1713,10 +1713,6 @@ export function AppShell({
|
||||
onAddToSplit={addTabToSplit}
|
||||
onRemoveFromSplit={removeTabFromSplit}
|
||||
onRenameTab={renameTab}
|
||||
onOpenFileManager={(tabId) => {
|
||||
const targetTab = tabs.find((t) => t.id === tabId);
|
||||
if (targetTab?.host) openTab(targetTab.host, "files");
|
||||
}}
|
||||
isAppFullscreen={isAppFullscreen}
|
||||
onToggleAppFullscreen={toggleAppFullscreen}
|
||||
/>
|
||||
|
||||
@@ -18,7 +18,6 @@ import {
|
||||
Pencil,
|
||||
Maximize2,
|
||||
Minimize2,
|
||||
FolderOpen,
|
||||
} from "lucide-react";
|
||||
import { tabIcon } from "@/shell/tabUtils";
|
||||
import { isElectron } from "@/lib/electron";
|
||||
@@ -41,7 +40,6 @@ export function TabBar({
|
||||
onAddToSplit,
|
||||
onRemoveFromSplit,
|
||||
onRenameTab,
|
||||
onOpenFileManager,
|
||||
isAppFullscreen,
|
||||
onToggleAppFullscreen,
|
||||
}: {
|
||||
@@ -58,7 +56,6 @@ export function TabBar({
|
||||
onAddToSplit: (tabId: string) => void;
|
||||
onRemoveFromSplit: (tabId: string) => void;
|
||||
onRenameTab?: (tabId: string, newLabel: string) => void;
|
||||
onOpenFileManager?: (tabId: string) => void;
|
||||
isAppFullscreen: boolean;
|
||||
onToggleAppFullscreen: () => void;
|
||||
}) {
|
||||
@@ -530,20 +527,6 @@ export function TabBar({
|
||||
{t("nav.refreshTab")}
|
||||
</button>
|
||||
)}
|
||||
{ctxTab.type === "terminal" &&
|
||||
ctxTab.host &&
|
||||
onOpenFileManager && (
|
||||
<button
|
||||
className="flex items-center gap-2 w-full px-3 py-1.5 text-xs text-left hover:bg-accent hover:text-accent-foreground"
|
||||
onClick={() => {
|
||||
onOpenFileManager(contextTabId);
|
||||
setContextTabId(null);
|
||||
}}
|
||||
>
|
||||
<FolderOpen className="size-3" />
|
||||
{t("nav.openFileManager")}
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
className="flex items-center gap-2 w-full px-3 py-1.5 text-xs text-left hover:bg-accent hover:text-accent-foreground"
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user