mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Switch to App.Preferences
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
68d4502374
commit
9dc89a9a3a
@ -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, {
|
||||
|
||||
@ -39,7 +39,7 @@ const {
|
||||
} = Renderer;
|
||||
const {
|
||||
Util,
|
||||
UserPreferences,
|
||||
App,
|
||||
} = Common;
|
||||
|
||||
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 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",
|
||||
|
||||
@ -39,7 +39,7 @@ const {
|
||||
} = Renderer;
|
||||
const {
|
||||
Util,
|
||||
UserPreferences,
|
||||
App,
|
||||
} = Common;
|
||||
|
||||
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 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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user