Skip to content

Commit 07f670c

Browse files
Merge pull request YouweGit#47 from vmalyk/feature/channel-type-notification
Added channelType to configuration and support for Pimcore Notifications
2 parents 678d3a1 + 164abe2 commit 07f670c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/WorkflowGui/Resources/public/js/pimcore/workflow/transition_notification.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,22 @@ pimcore.plugin.workflow.transition_notification = Class.create({
131131
},
132132
this.getUserCombobox(notification.get('notifyUsers')),
133133
this.getRolesCombobox(notification.get('notifyRoles')),
134+
{
135+
xtype: 'multiselect',
136+
fieldLabel: t('workflow_transition_notification_channel_types'),
137+
name: 'channelType',
138+
store: Ext.data.ArrayStore({
139+
fields: ['type'],
140+
data: [
141+
['mail'],
142+
['pimcore_notification'],
143+
]
144+
}),
145+
value: notification.get('channelType') ? notification.get('channelType') : 'mail',
146+
displayField: 'type',
147+
valueField: 'type',
148+
allowBlank: false
149+
},
134150
{
135151
xtype: 'combobox',
136152
fieldLabel: t('workflow_transition_notification_mail_type'),

src/WorkflowGui/Resources/translations/admin.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ workflow_transition_change_publish_state: 'Change Publish State'
6262
workflow_transition_notifications: 'Notifications'
6363
workflow_transition_notification: 'Notification'
6464
workflow_transition_notification_condition: 'Condition'
65+
workflow_transition_notification_channel_types: 'Channel Types'
6566
workflow_transition_notification_mail_type: 'Mail Type'
6667
workflow_transition_notification_mail_path: 'Mail Path'
6768
workflow_transition_notification_notify_users: 'Notify Users'

0 commit comments

Comments
 (0)