update notification messages for webhook/pagerduty

This commit is contained in:
Keith Grant
2019-08-08 15:43:51 -07:00
committed by Jim Ladd
parent 56f04e0153
commit 150de6a70b

View File

@@ -608,7 +608,7 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages", ngShow: "customize_messages && notification_type.value != 'webhook'",
rows: 2, rows: 2,
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
@@ -618,7 +618,10 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages && notification_type.value == 'email'", ngShow: "customize_messages && " +
"(notification_type.value == 'email' " +
"|| notification_type.value == 'pagerduty' " +
"|| notification_type.value == 'webhook')",
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
success_message: { success_message: {
@@ -627,7 +630,7 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages", ngShow: "customize_messages && notification_type.value != 'webhook'",
rows: 2, rows: 2,
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
@@ -637,7 +640,10 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages && notification_type.value == 'email'", ngShow: "customize_messages && " +
"(notification_type.value == 'email' " +
"|| notification_type.value == 'pagerduty' " +
"|| notification_type.value == 'webhook')",
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
error_message: { error_message: {
@@ -646,7 +652,7 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages", ngShow: "customize_messages && notification_type.value != 'webhook'",
rows: 2, rows: 2,
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
@@ -656,7 +662,10 @@ export default ['i18n', function(i18n) {
type: 'syntax_highlight', type: 'syntax_highlight',
mode: 'jinja2', mode: 'jinja2',
default: '', default: '',
ngShow: "customize_messages && notification_type.value == 'email'", ngShow: "customize_messages && " +
"(notification_type.value == 'email' " +
"|| notification_type.value == 'pagerduty' " +
"|| notification_type.value == 'webhook')",
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)',
}, },
}, },