Sfoglia il codice sorgente

welcome: add room validation pattern

Fixes: #312
master
Maximilian Ruta 5 anni fa
parent
commit
be5dba7eea
2 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 1
    0
      lang/main.json
  2. 2
    0
      react/features/welcome/components/WelcomePage.web.js

+ 1
- 0
lang/main.json Vedi File

@@ -707,6 +707,7 @@
707 707
         "connectCalendarButton": "Connect your calendar",
708 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 709
         "enterRoomTitle": "Start a new meeting",
710
+        "onlyAsciiAllowed": "Meeting name should only contain latin characters and numbers.",
710 711
         "go": "GO",
711 712
         "join": "JOIN",
712 713
         "info": "Info",

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

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

Loading…
Annulla
Salva