Make payload be readonly within Templates drawer (#1994)

# What this PR does

Make payload be readonly within Templates drawer
This commit is contained in:
Rares Mardare 2023-05-23 16:44:19 +03:00 committed by GitHub
parent 3c54d1bd30
commit 98be80c200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,10 @@ const TemplatesAlertGroupsList = (props: TemplatesAlertGroupsListProps) => {
showLineNumbers
useAutoCompleteList={false}
language={MONACO_LANGUAGE.json}
monacoOptions={MONACO_PAYLOAD_OPTIONS}
monacoOptions={{
...MONACO_PAYLOAD_OPTIONS,
readOnly: true,
}}
/>
</div>
</VerticalGroup>