diff --git a/src/CallHandler.js b/src/CallHandler.js index 5edeba7625..c36ca382f2 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -145,7 +145,6 @@ function _setCallListeners(call) { Modal.createDialog(ErrorDialog, { title: _t('Call Timeout'), description: _t('The remote side failed to pick up') + '.', - button: _t("OK"), }); } else if (oldState === "invite_sent") { @@ -207,7 +206,6 @@ function _onAction(payload) { Modal.createDialog(ErrorDialog, { title: _t('Unable to capture screen'), description: screenCapErrorString, - button: _t("OK"), }); return; } @@ -228,7 +226,6 @@ function _onAction(payload) { Modal.createDialog(ErrorDialog, { title: _t('Existing Call'), description: _t('You are already in a call') + '.', - button: _t("OK"), }); return; // don't allow >1 call to be placed. } @@ -239,7 +236,6 @@ function _onAction(payload) { Modal.createDialog(ErrorDialog, { title: _t('VoIP is unsupported'), description: _t('You cannot place VoIP calls in this browser') + '.', - button: _t("OK"), }); return; } @@ -255,8 +251,6 @@ function _onAction(payload) { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createDialog(ErrorDialog, { description: _t('You cannot place a call with yourself') + '.', - title: _t("Error"), - button: _t("OK"), }); return; } @@ -283,8 +277,6 @@ function _onAction(payload) { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createDialog(ErrorDialog, { description: _t('Conference calls are not supported in this client'), - title: _t("Error"), - button: _t("OK"), }); } else if (!MatrixClientPeg.get().supportsVoip()) { @@ -292,7 +284,6 @@ function _onAction(payload) { Modal.createDialog(ErrorDialog, { title: _t('VoIP is unsupported'), description: _t('You cannot place VoIP calls in this browser') + '.', - button: _t("OK"), }); } else if (MatrixClientPeg.get().isRoomEncrypted(payload.room_id)) { @@ -304,17 +295,14 @@ function _onAction(payload) { // Therefore we disable conference calling in E2E rooms. const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createDialog(ErrorDialog, { - title: _t("Error"), - button: _t("OK"), description: _t('Conference calls are not supported in encrypted rooms'), }); } else { var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); Modal.createDialog(QuestionDialog, { - title: _t('Warning') + '!', + title: _t('Warning!'), description: _t('Conference calling is in development and may not be reliable') + '.', - button: _t("OK"), onFinished: confirm=>{ if (confirm) { ConferenceHandler.createNewMatrixCall( @@ -327,7 +315,6 @@ function _onAction(payload) { Modal.createDialog(ErrorDialog, { title: _t('Failed to set up conference call'), description: _t('Conference call failed') + '. ' + ((err && err.message) ? err.message : ''), - button: _t("OK"), }); }); } diff --git a/src/ContentMessages.js b/src/ContentMessages.js index d4f8cae276..315c312b9f 100644 --- a/src/ContentMessages.js +++ b/src/ContentMessages.js @@ -356,7 +356,6 @@ class ContentMessages { Modal.createDialog(ErrorDialog, { title: _t('Upload Failed'), description: desc, - button: _t("OK"), }); } }).finally(() => { diff --git a/src/SlashCommands.js b/src/SlashCommands.js index 645ca6e8fe..366604eaee 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -71,7 +71,6 @@ const commands = { Modal.createDialog(ErrorDialog, { title: _t('/ddg is not a command'), description: _t('To use it, just wait for autocomplete results to load and tab through them') + '.', - button: _t("OK"), }); return success(); }), diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index a00d9c22ce..2ba1506551 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -378,7 +378,6 @@ module.exports = React.createClass({ Modal.createDialog(QuestionDialog, { title: _t('Reject invitation'), description: _t('Are you sure you want to reject the invitation?'), - button: "OK", onFinished: (confirm) => { if (confirm) { // FIXME: controller shouldn't be loading a view :( @@ -395,7 +394,6 @@ module.exports = React.createClass({ Modal.createDialog(ErrorDialog, { title: _t('Failed to reject invitation'), description: err.toString(), - button: _t("OK"), }); }); } @@ -895,7 +893,6 @@ module.exports = React.createClass({ Modal.createDialog(ErrorDialog, { title: _t('Signed Out'), description: _t('For security, this session has been signed out. Please sign in again.'), - button: _t("OK"), }); dis.dispatch({ action: 'logout', diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index f0b6160012..badc7cd01d 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -531,7 +531,7 @@ module.exports = React.createClass({ if (!userHasUsedEncryption) { const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); Modal.createDialog(QuestionDialog, { - title: _t("Warning") + "!", + title: _t("Warning!"), hasCancelButton: false, description: (
{ _t("Encrypted messages will not be visible on clients that do not yet implement encryption") }.
{ _t('End-to-end encryption is in beta and may not be reliable') }.
@@ -550,7 +548,6 @@ module.exports = React.createClass({{ _t('Encrypted messages will not be visible on clients that do not yet implement encryption') }.