Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions plugins/plugin-kubectl/src/tray/menus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ export default async function buildContextMenu(
const { Menu } = await import('electron')

const contextMenu = Menu.buildFromTemplate([
...section('Resources', [workloads(createWindow), networking(createWindow), storage(createWindow)]),
...section('Kubernetes Clusters', contexts(createWindow, updateFn)),
...section('Kubernetes Resources', [workloads(createWindow), networking(createWindow), storage(createWindow)]),
...section('Kubernetes Contexts', contexts(createWindow, updateFn)),
...section('Kubernetes Namespaces', namespaces(createWindow, updateFn)),
{ type: 'separator' },
{ label: `${productName} ${version}`, icon: productIcon, click: () => createWindow([], { width, height }) },
{ label: `File Bug or Feature Request`, icon: bugIcon, click: () => import('open').then(_ => _.default(bugs.url)) },
{ label: `Quit ${productName}`, icon: powerOffIcon, role: 'quit' }
...section(`${productName} ${version}`, [
{ label: 'New Window', icon: productIcon, click: () => createWindow([], { width, height }) },
{ label: 'Contact Us', icon: bugIcon, click: () => import('open').then(_ => _.default(bugs.url)) },
{ label: `Quit ${productName}`, icon: powerOffIcon, role: 'quit' }
])
])

return contextMenu
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-kubectl/src/tray/menus/resources/open.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
import { CreateWindowFunction } from '@kui-shell/core'

export default function openWindowWith(argv: string[], createWindow: CreateWindowFunction) {
return () => createWindow(argv, { quietExecCommand: false, width: 800, height: 600 })
return () => createWindow(argv, { quietExecCommand: false, width: 1000, height: 800 })
}