Kaynağa Gözat

feat(did-page) Handle SIP number on did info page

master
hmuresan 4 yıl önce
ebeveyn
işleme
804d14e112

+ 1
- 0
lang/main.json Dosyayı Görüntüle

410
         "noRoom": "No room was specified to dial-in into.",
410
         "noRoom": "No room was specified to dial-in into.",
411
         "numbers": "Dial-in Numbers",
411
         "numbers": "Dial-in Numbers",
412
         "password": "$t(lockRoomPasswordUppercase):",
412
         "password": "$t(lockRoomPasswordUppercase):",
413
+        "sip": "SIP address",
413
         "title": "Share",
414
         "title": "Share",
414
         "tooltip": "Share link and dial-in info for this meeting",
415
         "tooltip": "Share link and dial-in info for this meeting",
415
         "label": "Dial-in info"
416
         "label": "Dial-in info"

+ 1
- 0
react/features/base/icons/svg/index.js Dosyayı Görüntüle

130
 export { default as IconWifi2Bars } from './wifi-2.svg';
130
 export { default as IconWifi2Bars } from './wifi-2.svg';
131
 export { default as IconWifi3Bars } from './wifi-3.svg';
131
 export { default as IconWifi3Bars } from './wifi-3.svg';
132
 export { default as IconYahoo } from './yahoo.svg';
132
 export { default as IconYahoo } from './yahoo.svg';
133
+export { default as IconSip } from './sip.svg';

+ 3
- 0
react/features/base/icons/svg/sip.svg Dosyayı Görüntüle

1
+<svg width="20" height="14" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+<path fill-rule="evenodd" clip-rule="evenodd" d="M4.41201 1.90767C3.50689 3.37865 5.24438 7.52348 7.36096 9.64007C7.36096 9.64004 7.36175 9.63923 7.36329 9.63765C9.48 11.7541 13.6215 13.4932 15.0923 12.5882C16.1022 11.9668 16.0078 9.51337 15.2427 8.76783C14.7369 8.2749 13.1882 8.01994 12.5497 8.14762C12.3496 8.18763 11.7907 8.76515 11.4793 9.08696C11.4184 9.14994 11.3669 9.20313 11.3295 9.24058C11.1007 9.46937 9.63912 8.22168 9.20588 7.78845L7.60102 9.39838C8.10053 8.89635 9.2057 7.78701 9.2057 7.78701C8.77247 7.35377 7.53081 5.89935 7.7596 5.67056C7.79705 5.63311 7.85024 5.58164 7.91322 5.5207C8.23503 5.20928 8.81255 4.65041 8.85256 4.45033C8.98024 3.81178 8.72528 2.26311 8.23236 1.75727C7.48681 0.992193 5.03342 0.897765 4.41201 1.90767Z" fill="white"/>
3
+</svg>

+ 8
- 3
react/features/invite/components/dial-in-summary/web/NumbersList.js Dosyayı Görüntüle

3
 import React, { Component } from 'react';
3
 import React, { Component } from 'react';
4
 
4
 
5
 import { translate } from '../../../../base/i18n';
5
 import { translate } from '../../../../base/i18n';
6
+import { Icon, IconSip } from '../../../../base/icons';
6
 
7
 
7
 type Props = {
8
 type Props = {
8
 
9
 
65
                 (resultNumbers, number) => {
66
                 (resultNumbers, number) => {
66
                     // The i18n-iso-countries package insists on upper case.
67
                     // The i18n-iso-countries package insists on upper case.
67
                     const countryCode = number.countryCode.toUpperCase();
68
                     const countryCode = number.countryCode.toUpperCase();
68
-                    const countryName
69
-                        = t(`countries:countries.${countryCode}`);
69
+                    const countryName = countryCode === 'SIP'
70
+                        ? t('info.sip')
71
+                        : t(`countries:countries.${countryCode}`);
70
 
72
 
71
                     if (resultNumbers[countryName]) {
73
                     if (resultNumbers[countryName]) {
72
                         resultNumbers[countryName].push(number);
74
                         resultNumbers[countryName].push(number);
143
         if (countryCode) {
145
         if (countryCode) {
144
             return (
146
             return (
145
                 <td className = 'flag-cell'>
147
                 <td className = 'flag-cell'>
146
-                    <i className = { `flag iti-flag ${countryCode}` } />
148
+                    {countryCode === 'SIP'
149
+                        ? <Icon src = { IconSip } />
150
+                        : <i className = { `flag iti-flag ${countryCode}` } />
151
+                    }
147
                 </td>);
152
                 </td>);
148
         }
153
         }
149
 
154
 

Loading…
İptal
Kaydet