Skip to content

Commit

Permalink
feat: configure FEEL popup links
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Oct 31, 2024
1 parent d31ef48 commit 4d59ccf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/camunda-cloud/Modeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@ export default function Modeler(options = {}) {
},
propertiesPanel: {
tooltip: ZeebeTooltipProvider,
getFeelPopupLinks: (type) => {
if (type === 'feel') {
return [

Check warning on line 51 in lib/camunda-cloud/Modeler.js

View check run for this annotation

Codecov / codecov/patch

lib/camunda-cloud/Modeler.js#L50-L51

Added lines #L50 - L51 were not covered by tests
{
label: 'Learn FEEL expressions',
url: 'https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/'
},
{
label: 'Try FEEL Copilot',
url: 'https://feel-copilot.camunda.com/'
}
];
} else if (type === 'feelers') {
return [

Check warning on line 62 in lib/camunda-cloud/Modeler.js

View check run for this annotation

Codecov / codecov/patch

lib/camunda-cloud/Modeler.js#L61-L62

Added lines #L61 - L62 were not covered by tests
{
label: 'Learn templating',
url: 'https://docs.camunda.io/docs/components/modeler/forms/configuration/forms-config-templating-syntax/'
}
];
}
},
...options.propertiesPanel
}
};
Expand Down

0 comments on commit 4d59ccf

Please sign in to comment.