From 98be80c200f08601c69c6c7c8fc1e4db6febf3de Mon Sep 17 00:00:00 2001 From: Rares Mardare Date: Tue, 23 May 2023 16:44:19 +0300 Subject: [PATCH] Make payload be readonly within Templates drawer (#1994) # What this PR does Make payload be readonly within Templates drawer --- .../TemplatesAlertGroupsList/TemplatesAlertGroupsList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grafana-plugin/src/containers/TemplatesAlertGroupsList/TemplatesAlertGroupsList.tsx b/grafana-plugin/src/containers/TemplatesAlertGroupsList/TemplatesAlertGroupsList.tsx index 88c41c0d..6e0ae4f7 100644 --- a/grafana-plugin/src/containers/TemplatesAlertGroupsList/TemplatesAlertGroupsList.tsx +++ b/grafana-plugin/src/containers/TemplatesAlertGroupsList/TemplatesAlertGroupsList.tsx @@ -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, + }} />