diff --git a/extensions/node-menu/src/node-menu.tsx b/extensions/node-menu/src/node-menu.tsx index a2412ec285..9f4d30a35c 100644 --- a/extensions/node-menu/src/node-menu.tsx +++ b/extensions/node-menu/src/node-menu.tsx @@ -35,7 +35,7 @@ const { Navigation } = Renderer; const { - UserPreferences, + App, } = Common; @@ -47,7 +47,7 @@ export function NodeMenu(props: NodeMenuProps) { if (!node) return null; const nodeName = node.getName(); - const kubectlPath = JSON.stringify(UserPreferences.getKubectlPath()); // this call escapes spaces and quotes + const kubectlPath = JSON.stringify(App.Preferences.getKubectlPath()); // this call escapes spaces and quotes const sendToTerminal = (command: string) => { terminalStore.sendCommand(command, { diff --git a/extensions/pod-menu/src/attach-menu.tsx b/extensions/pod-menu/src/attach-menu.tsx index e1e63b1e36..549c85359a 100644 --- a/extensions/pod-menu/src/attach-menu.tsx +++ b/extensions/pod-menu/src/attach-menu.tsx @@ -39,7 +39,7 @@ const { } = Renderer; const { Util, - UserPreferences, + App, } = Common; export interface PodAttachMenuProps extends Renderer.Component.KubeObjectMenuProps { @@ -50,7 +50,7 @@ export class PodAttachMenu extends React.Component { const { object: pod } = this.props; const commandParts = [ - JSON.stringify(UserPreferences.getKubectlPath()), // this call escapes spaces and quotes + JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes "attach", "-i", "-t", diff --git a/extensions/pod-menu/src/shell-menu.tsx b/extensions/pod-menu/src/shell-menu.tsx index 01921626df..54edd68e29 100644 --- a/extensions/pod-menu/src/shell-menu.tsx +++ b/extensions/pod-menu/src/shell-menu.tsx @@ -39,7 +39,7 @@ const { } = Renderer; const { Util, - UserPreferences, + App, } = Common; export interface PodShellMenuProps extends Renderer.Component.KubeObjectMenuProps { @@ -50,7 +50,7 @@ export class PodShellMenu extends React.Component { const { object: pod } = this.props; const commandParts = [ - JSON.stringify(UserPreferences.getKubectlPath()), // this call escapes spaces and quotes + JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes "exec", "-i", "-t",