1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-20 05:47:24 +03:00

Make editor editable when user-supplied values is selected (#3776)

This commit is contained in:
Korvin Szanto 2021-10-04 08:50:40 -07:00 committed by GitHub
parent 31ee323baa
commit 0c2140de8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ export class ReleaseDetails extends Component<Props> {
onChange={text => this.values = text}
theme={ThemeStore.getInstance().activeTheme.monacoTheme}
className={cssNames("MonacoEditor", {loading: valuesLoading})}
options={{readOnly: valuesLoading || this.showOnlyUserSuppliedValues, ...UserStore.getInstance().getEditorOptions()}}
options={{readOnly: valuesLoading, ...UserStore.getInstance().getEditorOptions()}}
>
{valuesLoading && <Spinner center />}
</MonacoEditor>