Make the hip chat setup field show more help information if the user enters a room name instead of a number

This commit is contained in:
Joseph Schorr 2015-02-26 12:35:28 -05:00
parent 258e879d11
commit d8048b09d2
4 changed files with 48 additions and 6 deletions

View file

@ -101,8 +101,11 @@ function(Config, Features) {
'fields': [
{
'name': 'room_id',
'type': 'string',
'title': 'Room ID #'
'type': 'regex',
'title': 'Room ID #',
'regex': '^[0-9]+$',
'help_url': 'https://hipchat.com/admin/rooms',
'regex_fail_message': 'We require the HipChat room <b>number</b>, not name.'
},
{
'name': 'notification_token',