From 44dfa20ed838a28892bd29dd00b1053a4d5169be Mon Sep 17 00:00:00 2001 From: "Carlos E. Feria Vila" Date: Thu, 27 Apr 2023 09:38:14 +0200 Subject: [PATCH] Add Java support to rules (#1646) --- .../src/shared/components/rule-editor/rule-editor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pf-ui/src/main/webapp/src/shared/components/rule-editor/rule-editor.tsx b/pf-ui/src/main/webapp/src/shared/components/rule-editor/rule-editor.tsx index 8b4de87853..08bd6c78a1 100644 --- a/pf-ui/src/main/webapp/src/shared/components/rule-editor/rule-editor.tsx +++ b/pf-ui/src/main/webapp/src/shared/components/rule-editor/rule-editor.tsx @@ -40,7 +40,11 @@ export const RuleEditor: React.FC = ({ ruleId, props }) => { isLanguageLabelVisible isDownloadEnabled code={ruleQuery.data?.content} - language={Language.xml} + language={ + ruleQuery.data?.content.startsWith(" { editor.layout(); editor.focus();