Skip to content

Commit 080c173

Browse files
authored
enhancement of calling settings (#212)
* enhancement of calling setting * fix typo * remove connect failed * update commons
1 parent 1e005c3 commit 080c173

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

dev-server/Phone.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ export default class Phone extends RcModule {
249249
webphone: this.webphone,
250250
extensionPhoneNumber: this.extensionPhoneNumber,
251251
numberValidate: this.numberValidate,
252-
extensionPhoneNumber: this.extensionPhoneNumber,
253252
getState: () => this.state.call,
254253
}));
255254
this.addModule('subscription', new Subscription({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"redux-thunk": "^2.1.0",
7979
"ringcentral": "3.0.0",
8080
"ringcentral-client": "^1.0.0-rc1",
81-
"ringcentral-integration": "^0.6.9",
81+
"ringcentral-integration": "^0.6.10",
8282
"sass-loader": "^4.1.1",
8383
"source-map-loader": "^0.1.5",
8484
"style-loader": "^0.13.1",

src/components/CallingSettingsAlert/i18n/en-US.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default {
1919
'Your phone number information has been changed recently. Please go to {link} to check your Calling options.',
2020
link: 'Settings > Calling',
2121
[callingSettingsMessages.webphonePermissionRemoved]:
22-
`Your permissions have been changed and you cannot make calls with Browser.
23-
For details please contact your account administrator.`,
22+
`Your permissions have been changed and you cannot make calls with Browser.
23+
For details please contact your account administrator.`,
2424
[callingSettingsMessages.emergencyCallingNotAvailable]:
2525
`Dialing emergency or special service numbers is not supported.
2626
In an emergency, use your traditional wireline or wireless phone to call an emergency number.`,

src/components/CallingSettingsAlert/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ function CallingSettingsAlert({ message: { message }, currentLocale, brand, call
1111
case callingSettingsMessages.saveSuccessWithSoftphone:
1212
case callingSettingsMessages.firstLogin:
1313
case callingSettingsMessages.firstLoginOther:
14+
case callingSettingsMessages.webphonePermissionRemoved:
15+
case callingSettingsMessages.emergencyCallingNotAvailable:
1416
return (
1517
<FormattedMessage
1618
message={i18n.getString(message)}
17-
values={{ brand: brand }}
19+
values={{ brand }}
1820
/>
1921
);
2022

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import webphoneErrors from 'ringcentral-integration/modules/Webphone/webphoneErrors';
22

33
export default {
4-
[webphoneErrors.connectFailed]: 'Send Success.',
4+
[webphoneErrors.connectFailed]: 'Connect with web phone server failed.',
55
[webphoneErrors.browserNotSupported]: 'Calling with browser is only supported on Chrome.',
66
[webphoneErrors.webphoneCountOverLimit]: 'A maximum of 5 web phones could be registered.',
77
[webphoneErrors.notOutboundCallWithoutDL]: `Your extension is not allowed to
88
make outbound calls with browser currently,
99
please contact your account representative for an upgrade.`,
10-
[webphoneErrors.getSipProvisionError]: 'You have no permission to send message.',
1110
};

src/components/WebphoneAlert/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ WebphoneAlert.propTypes = {
1717
};
1818

1919
WebphoneAlert.handleMessage = ({ message }) => (
20-
(message === webphoneErrors.connectFailed) ||
2120
(message === webphoneErrors.browserNotSupported) ||
2221
(message === webphoneErrors.webphoneCountOverLimit) ||
23-
(message === webphoneErrors.notOutboundCallWithoutDL) ||
24-
(message === webphoneErrors.getSipProvisionError)
22+
(message === webphoneErrors.notOutboundCallWithoutDL)
2523
);

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6432,9 +6432,9 @@ ringcentral-client@^1.0.0-rc1:
64326432
form-data "^2.1.2"
64336433
isomorphic-fetch "^2.2.1"
64346434

6435-
ringcentral-integration@^0.6.9:
6436-
version "0.6.9"
6437-
resolved "https://registry.yarnpkg.com/ringcentral-integration/-/ringcentral-integration-0.6.9.tgz#577e5e6fa8101aa995a89776c8df17bcc9b479d2"
6435+
ringcentral-integration@^0.6.10:
6436+
version "0.6.10"
6437+
resolved "https://registry.yarnpkg.com/ringcentral-integration/-/ringcentral-integration-0.6.10.tgz#9c6d2eb008ba30c8a87743a559456790d0454a5a"
64386438
dependencies:
64396439
file-loader "^0.10.1"
64406440
json-mask "^0.3.8"

0 commit comments

Comments
 (0)