Skip to content

Commit

Permalink
fix: fix document preview properties panel text
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Dec 12, 2024
1 parent bb132e0 commit 90e8e0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function DocumentsDataSource(props) {
element: field,
getValue,
id,
label: 'Documents metadata source',
label: 'Document reference',
feel: 'required',
singleLine: true,
setValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,17 @@ function EndpointKey(props) {

const tooltip = (
<div>
<p>A context key that will be evaluated to a string containing the API endpoint for downloading a document.</p>
<p>Enter a context key that generates a string with the API endpoint to download a document.</p>
<p>
This string must contain <br />
the <code>{'{ documentId }'}</code> placeholder which will be replaced with the document ID from the documents
metadata.
The string must contain <code>{'{ documentId }'}</code>, which will be replaced with the document ID from the
document's reference.
</p>
<p>If you're using the Camunda Tasklist, this variable is automatically added to the context for you.</p>
<p>
If you're using the Camunda Tasklist UI this variable will be automatically injected in the context for you.
</p>
<p>
Find more details in the{' '}
For more details, see the{' '}
<a href="https://docs.camunda.io" rel="noopener noreferrer" target="_blank">
Camunda documentation
</a>
.
</p>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,7 @@ describe('properties panel', function () {

// then
expectPanelStructure(container, {
General: ['Title', 'Documents metadata source'],
General: ['Title', 'Document reference'],
'Download settings': ['Document URL'],
Condition: [],
Appearance: ['Max height of preview container'],
Expand Down

0 comments on commit 90e8e0b

Please sign in to comment.