Skip to content

Commit e4e2970

Browse files
barmacnikku
authored andcommitted
feat: update form section tooltip
Related to camunda/camunda-modeler#4183
1 parent 28d300f commit e4e2970

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/contextProvider/zeebe/TooltipProvider.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
useService
88
} from '../../hooks';
99

10+
import { isZeebeUserTask } from '../../provider/zeebe/utils/FormUtil';
11+
1012
const TooltipProvider = {
1113

1214
'group-assignmentDefinition': (element) => {
@@ -78,10 +80,21 @@ const TooltipProvider = {
7880
'group-form': (element) => {
7981
const translate = useService('translate');
8082

83+
if (isZeebeUserTask(element)) {
84+
return (
85+
<div>
86+
{ translate('Link a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify an external reference. ')}
87+
<a href="https://docs.camunda.io/docs/guides/utilizing-forms/#link-your-form-to-a-bpmn-diagram" target="_blank" rel="noopener" title={ translate('User task form documentation') }>
88+
{ translate('Learn more.') }
89+
</a>
90+
</div>
91+
);
92+
}
93+
8194
return (
8295
<div>
8396
{ translate('Link or embed a form created with the Camunda Forms editor. To associate a custom form, application, or URL to the user task, specify a form key. ')}
84-
<a href="https://docs.camunda.io/docs/guides/utilizing-forms/#connect-your-form-to-a-bpmn-diagram" target="_blank" rel="noopener" title={ translate('User task form documentation') }>
97+
<a href="https://docs.camunda.io/docs/guides/utilizing-forms/#link-your-form-to-a-bpmn-diagram" target="_blank" rel="noopener" title={ translate('User task form documentation') }>
8598
{ translate('Learn more.') }
8699
</a>
87100
</div>

0 commit comments

Comments
 (0)