Switch to App.Preferences

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-09-13 14:55:34 -04:00
1 parent 68d4502374
commit 9dc89a9a3a
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@ const {
Navigation Navigation
} = Renderer; } = Renderer;
const { const {
UserPreferences, App,
} = Common; } = Common;
@@ -47,7 +47,7 @@ export function NodeMenu(props: NodeMenuProps) {
if (!node) return null; if (!node) return null;
const nodeName = node.getName(); 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) => { const sendToTerminal = (command: string) => {
terminalStore.sendCommand(command, { terminalStore.sendCommand(command, {
+2 -2
View File
@@ -39,7 +39,7 @@ const {
} = Renderer; } = Renderer;
const { const {
Util, Util,
UserPreferences, App,
} = Common; } = Common;
export interface PodAttachMenuProps extends Renderer.Component.KubeObjectMenuProps<Pod> { export interface PodAttachMenuProps extends Renderer.Component.KubeObjectMenuProps<Pod> {
@@ -50,7 +50,7 @@ export class PodAttachMenu extends React.Component<PodAttachMenuProps> {
const { object: pod } = this.props; const { object: pod } = this.props;
const commandParts = [ const commandParts = [
JSON.stringify(UserPreferences.getKubectlPath()), // this call escapes spaces and quotes JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes
"attach", "attach",
"-i", "-i",
"-t", "-t",
+2 -2
View File
@@ -39,7 +39,7 @@ const {
} = Renderer; } = Renderer;
const { const {
Util, Util,
UserPreferences, App,
} = Common; } = Common;
export interface PodShellMenuProps extends Renderer.Component.KubeObjectMenuProps<Pod> { export interface PodShellMenuProps extends Renderer.Component.KubeObjectMenuProps<Pod> {
@@ -50,7 +50,7 @@ export class PodShellMenu extends React.Component<PodShellMenuProps> {
const { object: pod } = this.props; const { object: pod } = this.props;
const commandParts = [ const commandParts = [
JSON.stringify(UserPreferences.getKubectlPath()), // this call escapes spaces and quotes JSON.stringify(App.Preferences.getKubectlPath()), // this call escapes spaces and quotes
"exec", "exec",
"-i", "-i",
"-t", "-t",