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