1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make editor editable when user-supplied values is selected

Signed-off-by: Korvin Szanto <me@kor.vin>
This commit is contained in:
Korvin Szanto 2021-09-10 10:37:36 -07:00 committed by Korvin Szanto
parent 42d3d277d8
commit c01d9c44be

View File

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