UI Popover Help for IRC/Slack Channel Names

Adding information in the UI popover allowing the user to send names with or without a prepending symbol.
This commit is contained in:
Jared Tabor
2016-04-26 13:56:20 -07:00
parent e381a4da85
commit ebe0a3acf5

View File

@@ -51,7 +51,7 @@ export default function() {
type: 'select', type: 'select',
addRequired: true, addRequired: true,
editRequired: true, editRequired: true,
class: 'NotificationsForm-typeSelect prepend-asterisk', class: 'NotificationsForm-typeSelect',
ngOptions: 'type.label for type in notification_type_options track by type.value', ngOptions: 'type.label for type in notification_type_options track by type.value',
ngChange: 'typeChange()', ngChange: 'typeChange()',
hasSubForm: true hasSubForm: true
@@ -144,7 +144,7 @@ export default function() {
type: 'textarea', type: 'textarea',
rows: 3, rows: 3,
awPopOver: '<p>Type an option on each line. The pound symbol (#) is not required.</p>'+ 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', '<p>For example:<br>engineering<br>\n #support<br>\n',
dataTitle: 'Destination Channels', dataTitle: 'Destination Channels',
dataPlacement: 'right', dataPlacement: 'right',
dataContainer: "body", dataContainer: "body",
@@ -326,6 +326,11 @@ export default function() {
targets: { targets: {
label: 'Destination Channels or Users', label: 'Destination Channels or Users',
type: 'text', type: 'text',
awPopOver: '<p>Type an option on each line. The pound symbol (#) is not required.</p>'+
'<p>For example:<br>#support or support<br>\n @username or username<br>\n',
dataTitle: 'Destination Channels',
dataPlacement: 'right',
dataContainer: "body",
awRequiredWhen: { awRequiredWhen: {
reqExpression: "irc_required", reqExpression: "irc_required",
init: "false" init: "false"