|
@@ -1,5 +1,5 @@
|
|
|
class App.Trigger extends App.Model
|
|
|
- @configure 'Trigger', 'name', 'activator', 'execution_condition_mode', 'condition', 'perform', 'active', 'note'
|
|
|
+ @configure 'Trigger', 'name', 'activator', 'execution_condition_mode', 'condition', 'perform', 'active', 'note', 'localization', 'timezone'
|
|
|
@extend Spine.Model.Ajax
|
|
|
@url: @apiPath + '/triggers'
|
|
|
@configure_attributes = [
|
|
@@ -8,6 +8,8 @@ class App.Trigger extends App.Model
|
|
|
{ name: 'execution_condition_mode', display: __('Action execution'), tag: 'radio', type: 'text', limit: 50, null: true, options: [ { value: 'selective', name: __('Selective (default)'), note: __('When at least one field from conditions was updated or article was added and conditions match') }, { value: 'always', name: __('Always'), note: __('When conditions match') } ] },
|
|
|
{ name: 'condition', display: __('Conditions for affected objects'), tag: 'ticket_selector', null: false, preview: false, action: true, hasChanged: true, executionTime: true, hasReached: true, hasRegexOperators: true },
|
|
|
{ name: 'perform', display: __('Execute changes on objects'), tag: 'ticket_perform_action', null: true, notification: true, trigger: true },
|
|
|
+ { name: 'localization', display: __('Locale'), tag: 'language', null: false, class: 'input', show_system_default_option: true },
|
|
|
+ { name: 'timezone', display: __('Timezone'), tag: 'timezone', null: false, class: 'input', show_system_default_option: true },
|
|
|
{ name: 'note', display: __('Note'), tag: 'textarea', limit: 250, null: true },
|
|
|
{ name: 'active', display: __('Active'), tag: 'active', default: true },
|
|
|
{ name: 'updated_at', display: __('Updated'), tag: 'datetime', readonly: 1 },
|