Skip to content

Commit

Permalink
feat: translate Append TextAnnotation context pad action
Browse files Browse the repository at this point in the history
  • Loading branch information
corocoto authored and philippfromme committed Jul 31, 2023
1 parent f2087b8 commit 7328955
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen

___Note:__ Yet to be released changes appear here._

* `FEAT`: translate _Append TextAnnotation_ context pad action ([#1932](https://github.com/bpmn-io/bpmn-js/pull/1932))

## 13.2.2

* `FIX`: do not vertically resize empty pools using the space tool ([#1769](https://github.com/bpmn-io/bpmn-js/issues/1769))
Expand Down
12 changes: 9 additions & 3 deletions lib/features/context-pad/ContextPadProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
assign(actions, {
'append.text-annotation': appendAction(
'bpmn:TextAnnotation',
'bpmn-icon-text-annotation'
'bpmn-icon-text-annotation',
translate('Append TextAnnotation')
)
});
}
Expand All @@ -468,7 +469,8 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
assign(actions, {
'append.text-annotation': appendAction(
'bpmn:TextAnnotation',
'bpmn-icon-text-annotation'
'bpmn-icon-text-annotation',
translate('Append TextAnnotation')
),

'connect': {
Expand Down Expand Up @@ -519,7 +521,11 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {

if (is(businessObject, 'bpmn:Group')) {
assign(actions, {
'append.text-annotation': appendAction('bpmn:TextAnnotation', 'bpmn-icon-text-annotation')
'append.text-annotation': appendAction(
'bpmn:TextAnnotation',
'bpmn-icon-text-annotation',
translate('Append TextAnnotation')
)
});
}

Expand Down

0 comments on commit 7328955

Please sign in to comment.