diff --git a/src/common/user-store/preferences-helpers.ts b/src/common/user-store/preferences-helpers.ts index 6f73f1e907..6fdad83c9d 100644 --- a/src/common/user-store/preferences-helpers.ts +++ b/src/common/user-store/preferences-helpers.ts @@ -319,5 +319,4 @@ export const DESCRIPTORS = { export const CONSTANTS = { updateChannels, - defaultEditorConfig, }; diff --git a/src/common/user-store/user-store.ts b/src/common/user-store/user-store.ts index cecd50a321..d93579afbf 100644 --- a/src/common/user-store/user-store.ts +++ b/src/common/user-store/user-store.ts @@ -29,7 +29,7 @@ import { kubeConfigDefaultPath } from "../kube-helpers"; import { appEventBus } from "../event-bus"; import path from "path"; import { ObservableToggleSet, toJS } from "../../renderer/utils"; -import { CONSTANTS, DESCRIPTORS, KubeconfigSyncValue, UserPreferencesModel, EditorConfiguration } from "./preferences-helpers"; +import { DESCRIPTORS, EditorConfiguration, KubeconfigSyncValue, UserPreferencesModel } from "./preferences-helpers"; import logger from "../../main/logger"; import { getPath } from "../utils/getPath"; @@ -90,7 +90,7 @@ export class UserStore extends BaseStore /* implements UserStore /** * Monaco editor configs */ - @observable editorConfiguration: EditorConfiguration = CONSTANTS.defaultEditorConfig; + @observable editorConfiguration: EditorConfiguration; /** * The set of file/folder paths to be synced diff --git a/src/renderer/components/+apps-releases/release-details.tsx b/src/renderer/components/+apps-releases/release-details.tsx index 85ab5cc71f..69eebd52f9 100644 --- a/src/renderer/components/+apps-releases/release-details.tsx +++ b/src/renderer/components/+apps-releases/release-details.tsx @@ -58,7 +58,7 @@ export class ReleaseDetails extends Component { @observable details: IReleaseDetails | null = null; @observable values = ""; @observable valuesLoading = false; - @observable showOnlyUserSuppliedValues = false; + @observable showOnlyUserSuppliedValues = true; @observable saving = false; @observable releaseSecret: Secret; @observable error?: string = undefined; diff --git a/src/renderer/components/+preferences/editor.tsx b/src/renderer/components/+preferences/editor.tsx index 0960a5592d..cd464e36dc 100644 --- a/src/renderer/components/+preferences/editor.tsx +++ b/src/renderer/components/+preferences/editor.tsx @@ -20,9 +20,8 @@ */ import { observer } from "mobx-react"; import React from "react"; -import type { editor } from "monaco-editor"; import { UserStore } from "../../../common/user-store"; -import { Switcher } from "../switch"; +import { FormSwitch, Switcher } from "../switch"; import { Select } from "../select"; import { SubTitle } from "../layout/sub-title"; import { SubHeader } from "../layout/sub-header"; @@ -46,17 +45,21 @@ export const Editor = observer(() => {
- Show minimap - editorConfiguration.minimap.enabled = checked} + Show minimap} + control={ + editorConfiguration.minimap.enabled = checked} + /> + } />
Position