Kill off more tabs

pull/21833/head
David Baker 2017-05-25 11:45:36 +01:00
parent 107024efa8
commit c7776915f7
1 changed files with 7 additions and 7 deletions

View File

@ -256,7 +256,7 @@ function _onAction(payload) {
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
description: _t('You cannot place a call with yourself') + '.', description: _t('You cannot place a call with yourself') + '.',
title: _t("Error"), title: _t("Error"),
button: _t("OK"), button: _t("OK"),
}); });
return; return;
} }
@ -284,7 +284,7 @@ function _onAction(payload) {
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
description: _t('Conference calls are not supported in this client'), description: _t('Conference calls are not supported in this client'),
title: _t("Error"), title: _t("Error"),
button: _t("OK"), button: _t("OK"),
}); });
} }
else if (!MatrixClientPeg.get().supportsVoip()) { else if (!MatrixClientPeg.get().supportsVoip()) {
@ -292,7 +292,7 @@ function _onAction(payload) {
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
title: _t('VoIP is unsupported'), title: _t('VoIP is unsupported'),
description: _t('You cannot place VoIP calls in this browser') + '.', description: _t('You cannot place VoIP calls in this browser') + '.',
button: _t("OK"), button: _t("OK"),
}); });
} }
else if (MatrixClientPeg.get().isRoomEncrypted(payload.room_id)) { else if (MatrixClientPeg.get().isRoomEncrypted(payload.room_id)) {
@ -304,8 +304,8 @@ function _onAction(payload) {
// Therefore we disable conference calling in E2E rooms. // Therefore we disable conference calling in E2E rooms.
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
title: _t("Error"), title: _t("Error"),
button: _t("OK"), button: _t("OK"),
description: _t('Conference calls are not supported in encrypted rooms'), description: _t('Conference calls are not supported in encrypted rooms'),
}); });
} }
@ -314,7 +314,7 @@ function _onAction(payload) {
Modal.createDialog(QuestionDialog, { Modal.createDialog(QuestionDialog, {
title: _t('Warning') + '!', title: _t('Warning') + '!',
description: _t('Conference calling is in development and may not be reliable') + '.', description: _t('Conference calling is in development and may not be reliable') + '.',
button: _t("OK"), button: _t("OK"),
onFinished: confirm=>{ onFinished: confirm=>{
if (confirm) { if (confirm) {
ConferenceHandler.createNewMatrixCall( ConferenceHandler.createNewMatrixCall(
@ -327,7 +327,7 @@ function _onAction(payload) {
Modal.createDialog(ErrorDialog, { Modal.createDialog(ErrorDialog, {
title: _t('Failed to set up conference call'), title: _t('Failed to set up conference call'),
description: _t('Conference call failed') + '. ' + ((err && err.message) ? err.message : ''), description: _t('Conference call failed') + '. ' + ((err && err.message) ? err.message : ''),
button: _t("OK"), button: _t("OK"),
}); });
}); });
} }