mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
fix adding/editing of HipChat notification templates, resolves #1934
This commit is contained in:
@@ -141,7 +141,23 @@ export default function() {
|
|||||||
reqExpression: "channel_required",
|
reqExpression: "channel_required",
|
||||||
init: "false"
|
init: "false"
|
||||||
},
|
},
|
||||||
ngShow: "notification_type.value == 'slack' || notification_type.value == 'hipchat'",
|
ngShow: "notification_type.value == 'slack'",
|
||||||
|
subForm: 'typeSubForm'
|
||||||
|
},
|
||||||
|
rooms: {
|
||||||
|
label: 'Destination Channels',
|
||||||
|
type: 'textarea',
|
||||||
|
rows: 3,
|
||||||
|
awPopOver: '<p>Type an option on each line. The pound symbol (#) is not required.</p>'+
|
||||||
|
'<p>For example:<br>engineering<br>\n #support<br>\n',
|
||||||
|
dataTitle: 'Destination Channels',
|
||||||
|
dataPlacement: 'right',
|
||||||
|
dataContainer: "body",
|
||||||
|
awRequiredWhen: {
|
||||||
|
reqExpression: "room_required",
|
||||||
|
init: "false"
|
||||||
|
},
|
||||||
|
ngShow: "notification_type.value == 'hipchat'",
|
||||||
subForm: 'typeSubForm'
|
subForm: 'typeSubForm'
|
||||||
},
|
},
|
||||||
token: {
|
token: {
|
||||||
@@ -264,11 +280,7 @@ export default function() {
|
|||||||
},
|
},
|
||||||
notify: {
|
notify: {
|
||||||
label: 'Notify Channel',
|
label: 'Notify Channel',
|
||||||
type: 'text',
|
type: 'checkbox',
|
||||||
awRequiredWhen: {
|
|
||||||
reqExpression: "hipchat_required",
|
|
||||||
init: "false"
|
|
||||||
},
|
|
||||||
ngShow: "notification_type.value == 'hipchat' ",
|
ngShow: "notification_type.value == 'hipchat' ",
|
||||||
subForm: 'typeSubForm'
|
subForm: 'typeSubForm'
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function () {
|
|||||||
case 'hipchat':
|
case 'hipchat':
|
||||||
obj.tokenLabel = ' Token';
|
obj.tokenLabel = ' Token';
|
||||||
obj.hipchat_required = true;
|
obj.hipchat_required = true;
|
||||||
obj.channel_required = true;
|
obj.room_required = true;
|
||||||
obj.token_required = true;
|
obj.token_required = true;
|
||||||
break;
|
break;
|
||||||
case 'twilio':
|
case 'twilio':
|
||||||
|
|||||||
Reference in New Issue
Block a user