Browse Source

welcome: add room validation pattern

Fixes: #312
master
Maximilian Ruta 5 years ago
parent
commit
be5dba7eea
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      lang/main.json
  2. 2
    0
      react/features/welcome/components/WelcomePage.web.js

+ 1
- 0
lang/main.json View File

707
         "connectCalendarButton": "Connect your calendar",
707
         "connectCalendarButton": "Connect your calendar",
708
         "connectCalendarText": "Connect your calendar to view all your meetings in {{app}}. Plus, add {{provider}} meetings to your calendar and start them with one click.",
708
         "connectCalendarText": "Connect your calendar to view all your meetings in {{app}}. Plus, add {{provider}} meetings to your calendar and start them with one click.",
709
         "enterRoomTitle": "Start a new meeting",
709
         "enterRoomTitle": "Start a new meeting",
710
+        "onlyAsciiAllowed": "Meeting name should only contain latin characters and numbers.",
710
         "go": "GO",
711
         "go": "GO",
711
         "join": "JOIN",
712
         "join": "JOIN",
712
         "info": "Info",
713
         "info": "Info",

+ 2
- 0
react/features/welcome/components/WelcomePage.web.js View File

147
                                 <input
147
                                 <input
148
                                     autoFocus = { true }
148
                                     autoFocus = { true }
149
                                     className = 'enter-room-input'
149
                                     className = 'enter-room-input'
150
+                                    pattern = '^[a-zA-Z0-9=\?]+$'
151
+                                    title = { t('welcomepage.onlyAsciiAllowed') }
150
                                     id = 'enter_room_field'
152
                                     id = 'enter_room_field'
151
                                     onChange = { this._onRoomChange }
153
                                     onChange = { this._onRoomChange }
152
                                     placeholder
154
                                     placeholder

Loading…
Cancel
Save