feature/freelens-parity-complete #87
@ -7,8 +7,8 @@ import { deleteResourceCmd, forceDeleteResourceCmd, getResourceYamlCmd } from "@
|
|||||||
import { ResourceActionMenu } from "./ResourceActionMenu";
|
import { ResourceActionMenu } from "./ResourceActionMenu";
|
||||||
import { ConfirmDeleteDialog } from "./ConfirmDeleteDialog";
|
import { ConfirmDeleteDialog } from "./ConfirmDeleteDialog";
|
||||||
import { LogStreamPanel } from "./LogStreamPanel";
|
import { LogStreamPanel } from "./LogStreamPanel";
|
||||||
import { ShellExecModal } from "./ShellExecModal";
|
import { InteractiveShellModal } from "./InteractiveShellModal";
|
||||||
import { AttachModal } from "./AttachModal";
|
import { InteractiveAttachModal } from "./InteractiveAttachModal";
|
||||||
import { EditResourceModal } from "./EditResourceModal";
|
import { EditResourceModal } from "./EditResourceModal";
|
||||||
|
|
||||||
interface PodListProps {
|
interface PodListProps {
|
||||||
@ -177,24 +177,22 @@ export function PodList({ pods, clusterId, namespace, onRefresh }: PodListProps)
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{activeModal?.type === "shell" && (
|
{activeModal?.type === "shell" && (
|
||||||
<ShellExecModal
|
<InteractiveShellModal
|
||||||
open
|
|
||||||
onOpenChange={(o) => { if (!o) setActiveModal(null); }}
|
|
||||||
clusterId={clusterId}
|
clusterId={clusterId}
|
||||||
namespace={activeModal.pod.namespace}
|
namespace={activeModal.pod.namespace}
|
||||||
podName={activeModal.pod.name}
|
pod={activeModal.pod.name}
|
||||||
containers={activeModal.pod.containers}
|
container={activeModal.pod.containers[0]}
|
||||||
|
onClose={() => setActiveModal(null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{activeModal?.type === "attach" && (
|
{activeModal?.type === "attach" && (
|
||||||
<AttachModal
|
<InteractiveAttachModal
|
||||||
open
|
|
||||||
onOpenChange={(o) => { if (!o) setActiveModal(null); }}
|
|
||||||
clusterId={clusterId}
|
clusterId={clusterId}
|
||||||
namespace={activeModal.pod.namespace}
|
namespace={activeModal.pod.namespace}
|
||||||
podName={activeModal.pod.name}
|
pod={activeModal.pod.name}
|
||||||
containers={activeModal.pod.containers}
|
container={activeModal.pod.containers[0]}
|
||||||
|
onClose={() => setActiveModal(null)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user