mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
Remove unnecessary fields from mattermost notification UI files
This commit is contained in:
parent
69122a5454
commit
bdcd3f9dc2
@ -347,10 +347,6 @@ export default ['i18n', function(i18n) {
|
||||
mattermost_username: {
|
||||
label: i18n._('Username'),
|
||||
type: 'text',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "mattermost_username_required",
|
||||
init: "false"
|
||||
},
|
||||
ngShow: "notification_type.value == 'mattermost' ",
|
||||
subForm: 'typeSubForm',
|
||||
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)'
|
||||
@ -358,10 +354,6 @@ export default ['i18n', function(i18n) {
|
||||
mattermost_channel: {
|
||||
label: i18n._('Channel'),
|
||||
type: 'text',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "mattermost_channel_required",
|
||||
init: "false"
|
||||
},
|
||||
ngShow: "notification_type.value == 'mattermost' ",
|
||||
subForm: 'typeSubForm',
|
||||
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)'
|
||||
@ -369,10 +361,6 @@ export default ['i18n', function(i18n) {
|
||||
mattermost_icon_url: {
|
||||
label: i18n._('Icon URL'),
|
||||
type: 'text',
|
||||
awRequiredWhen: {
|
||||
reqExpression: "mattermost_icon_url_required",
|
||||
init: "false"
|
||||
},
|
||||
ngShow: "notification_type.value == 'mattermost' ",
|
||||
subForm: 'typeSubForm',
|
||||
ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)'
|
||||
|
@ -51,9 +51,6 @@ function (i18n) {
|
||||
break;
|
||||
case 'mattermost':
|
||||
obj.mattermost_required = true;
|
||||
obj.mattermost_username_required = false;
|
||||
obj.mattermost_channel_required = false;
|
||||
obj.mattermost_icon_url_required = false;
|
||||
break;
|
||||
case 'pagerduty':
|
||||
obj.tokenLabel = ' ' + i18n._('API Token');
|
||||
|
Loading…
Reference in New Issue
Block a user