Skip to content

Commit

Permalink
feat: improve visual presence of user and service tasks
Browse files Browse the repository at this point in the history
Ensures these are more prominently featured in replace +
create/append anything menus.

Related to #1621
  • Loading branch information
nikku committed Feb 7, 2023
1 parent 453a923 commit 6f760ed
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
33 changes: 16 additions & 17 deletions lib/features/create-append-anything/util/OptionsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,22 @@ export var TASK = [
type: 'bpmn:Task'
}
},
{
label: 'User Task',
actionName: 'user-task',
className: 'bpmn-icon-user',
target: {
type: 'bpmn:UserTask'
}
},
{
label: 'Service Task',
actionName: 'service-task',
className: 'bpmn-icon-service',
target: {
type: 'bpmn:ServiceTask'
}
},
{
label: 'Send Task',
actionName: 'send-task',
Expand All @@ -504,15 +520,6 @@ export var TASK = [
className: 'bpmn-icon-receive',
target: {
type: 'bpmn:ReceiveTask'
}
},
{
label: 'User Task',
actionName: 'user-task',
className: 'bpmn-icon-user',
target: {
type: 'bpmn:UserTask'
}
},
{
label: 'Manual Task',
Expand All @@ -530,14 +537,6 @@ export var TASK = [
type: 'bpmn:BusinessRuleTask'
}
},
{
label: 'Service Task',
actionName: 'service-task',
className: 'bpmn-icon-service',
target: {
type: 'bpmn:ServiceTask'
}
},
{
label: 'Script Task',
actionName: 'script-task',
Expand Down
32 changes: 16 additions & 16 deletions lib/features/replace/ReplaceOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,22 @@ export var TASK = [
type: 'bpmn:Task'
}
},
{
label: 'User Task',
actionName: 'replace-with-user-task',
className: 'bpmn-icon-user',
target: {
type: 'bpmn:UserTask'
}
},
{
label: 'Service Task',
actionName: 'replace-with-service-task',
className: 'bpmn-icon-service',
target: {
type: 'bpmn:ServiceTask'
}
},
{
label: 'Send Task',
actionName: 'replace-with-send-task',
Expand All @@ -459,14 +475,6 @@ export var TASK = [
type: 'bpmn:ReceiveTask'
}
},
{
label: 'User Task',
actionName: 'replace-with-user-task',
className: 'bpmn-icon-user',
target: {
type: 'bpmn:UserTask'
}
},
{
label: 'Manual Task',
actionName: 'replace-with-manual-task',
Expand All @@ -483,14 +491,6 @@ export var TASK = [
type: 'bpmn:BusinessRuleTask'
}
},
{
label: 'Service Task',
actionName: 'replace-with-service-task',
className: 'bpmn-icon-service',
target: {
type: 'bpmn:ServiceTask'
}
},
{
label: 'Script Task',
actionName: 'replace-with-script-task',
Expand Down

0 comments on commit 6f760ed

Please sign in to comment.