diff --git a/Localize/lang/strings.json b/Localize/lang/strings.json index cd42d3c7310..6c4a066f445 100644 --- a/Localize/lang/strings.json +++ b/Localize/lang/strings.json @@ -1334,6 +1334,7 @@ "OFXJe0": "Tools", "OH9xlX": "10", "OIOexo": "On these days", + "OMW+Rg": "Saving…", "OMbXig": "Name", "OMr20n": "Sandbox Configuration (Optional)", "OMuMCI": "Workflow properties", @@ -1547,6 +1548,7 @@ "SToblZ": "Configure parameters for this node", "SUaXux": "These are the connection services this template depends on. When users deploy a workflow using this template, they’ll be prompted to create connections to the services it uses.", "SUo94t": "Add files", + "SUqh1Y": "Save", "SXb47U": "{minutes}m", "SY04wn": "Required. The name of the action with a form-data or form-encoded response.", "SY9ptd": "Each action has parameters that accept input. Check the default input sources and make any necessary changes to meet your scenario.", @@ -3297,6 +3299,7 @@ "_OFXJe0.comment": "Label for allowed tools dropdown", "_OH9xlX.comment": "Hour of the day", "_OIOexo.comment": "Label for schedule days", + "_OMW+Rg.comment": "Label shown while saving the edited action code", "_OMbXig.comment": "Label for the name input", "_OMr20n.comment": "Title for sandbox configuration section", "_OMuMCI.comment": "Header text for workflow properties", @@ -3510,6 +3513,7 @@ "_SToblZ.comment": "Parameters tab description", "_SUaXux.comment": "The description for the connections tab", "_SUo94t.comment": "Title for add files panel", + "_SUqh1Y.comment": "Button to save the edited action code", "_SXb47U.comment": "This is a period in time in seconds. {minutes} is replaced by the number and m is an abbreviation of minutes", "_SY04wn.comment": "Required string parameter to identify action name for formDataMultiValues function", "_SY9ptd.comment": "Description for the actions section", @@ -4158,6 +4162,7 @@ "_eXWIo2.comment": "Description for parameter default value field", "_eXcejw.comment": "Running status", "_eaEXYa.comment": "Checkbox text for the filter representing all items", + "_eaI2mF.comment": "Validation error shown when the edited action code is not valid JSON", "_eagv8j.comment": "Create logic app workspace text.", "_eb91v1.comment": "Header for the change connection panel", "_ec13/p.comment": "Link text to learn more about Independent Publisher connectors", @@ -4469,6 +4474,7 @@ "_kSXjTx.comment": "Assertion field no description text", "_kU4VfD.comment": "Choice group first choice: Stateful Type", "_kVwJXt.comment": "Time zone value ", + "_kWpQvf.comment": "Button to discard edits made to the action code", "_kXn5e0.comment": "Chabot input placeholder text", "_kZCX7t.comment": "Day of the week", "_kZk/Ed.comment": "ARIA label text for the download link. Do not remove the double single quotes around the display name, as it is needed to wrap the placeholder text.", @@ -5537,6 +5543,7 @@ "eXWIo2": "Pre-filled value used if the user doesn't enter anything.", "eXcejw": "In progress", "eaEXYa": "All", + "eaI2mF": "Invalid JSON. Fix the errors before saving.", "eagv8j": "Create logic app workspace", "eb91v1": "Change connection", "ec13/p": "Learn more", @@ -5848,6 +5855,7 @@ "kSXjTx": "No description", "kU4VfD": "Stateful", "kVwJXt": "(UTC+04:00) Abu Dhabi, Muscat", + "kWpQvf": "Discard", "kXn5e0": "Ask a question about this workflow or about Azure Logic Apps as a whole ...", "kZCX7t": "Monday", "kZk/Ed": "Alt/Option + select to download ''{displayName}''", diff --git a/apps/Standalone/src/designer/app/SettingsSections/contextSettings.tsx b/apps/Standalone/src/designer/app/SettingsSections/contextSettings.tsx index 5be18ac0f61..827a91878a8 100644 --- a/apps/Standalone/src/designer/app/SettingsSections/contextSettings.tsx +++ b/apps/Standalone/src/designer/app/SettingsSections/contextSettings.tsx @@ -98,6 +98,11 @@ const ContextSettings = () => { checked={hostOptions.collapseGraphsByDefault} onChange={(_, checked) => dispatch(setHostOptions({ collapseGraphsByDefault: !!checked }))} /> + dispatch(setHostOptions({ enableEditableCodeView: !!checked }))} + /> ({ + MonacoEditor: ({ + value, + onContentChanged, + readOnly, + }: { + value?: string; + onContentChanged: (e: { value: string }) => void; + readOnly?: boolean; + }) => ( +