mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
Remove NeedToRegisterDialog
- since it's no longer used anywhere
This commit is contained in:
parent
9e96e8e87f
commit
e6d7eedbe6
@ -1,72 +0,0 @@
|
||||
/*
|
||||
Copyright 2016 OpenMarket Ltd
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Usage:
|
||||
* Modal.createDialog(NeedToRegisterDialog, {
|
||||
* title: "some text", (default: "Registration required")
|
||||
* description: "some more text",
|
||||
* onFinished: someFunction,
|
||||
* });
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import dis from '../../../dispatcher';
|
||||
import sdk from '../../../index';
|
||||
import { _t } from '../../../languageHandler';
|
||||
|
||||
module.exports = React.createClass({
|
||||
displayName: 'NeedToRegisterDialog',
|
||||
propTypes: {
|
||||
title: React.PropTypes.string,
|
||||
description: React.PropTypes.oneOfType([
|
||||
React.PropTypes.element,
|
||||
React.PropTypes.string,
|
||||
]),
|
||||
onFinished: React.PropTypes.func.isRequired,
|
||||
},
|
||||
|
||||
onRegisterClicked: function() {
|
||||
dis.dispatch({
|
||||
action: "start_upgrade_registration",
|
||||
});
|
||||
if (this.props.onFinished) {
|
||||
this.props.onFinished();
|
||||
}
|
||||
},
|
||||
|
||||
render: function() {
|
||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||
return (
|
||||
<BaseDialog className="mx_NeedToRegisterDialog"
|
||||
onFinished={this.props.onFinished}
|
||||
title={this.props.title || _t('Registration required')}
|
||||
>
|
||||
<div className="mx_Dialog_content">
|
||||
{this.props.description || _t('A registered account is required for this action')}
|
||||
</div>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<button className="mx_Dialog_primary" onClick={this.props.onFinished} autoFocus={true}>
|
||||
{_t("Cancel")}
|
||||
</button>
|
||||
<button onClick={this.onRegisterClicked}>
|
||||
{_t("Register")}
|
||||
</button>
|
||||
</div>
|
||||
</BaseDialog>
|
||||
);
|
||||
},
|
||||
});
|
@ -697,7 +697,6 @@
|
||||
"%(oneUser)schanged their avatar": "%(oneUser)shat das Profilbild geändert",
|
||||
"%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s": "%(weekDayName)s, %(day)s. %(monthName)s %(fullYear)s %(time)s",
|
||||
"%(oneUser)sleft and rejoined": "%(oneUser)shat den Raum verlassen und wieder neu betreten",
|
||||
"A registered account is required for this action": "Für diese Aktion ist ein registrierter Account notwendig",
|
||||
"Access Token:": "Zugangs-Token:",
|
||||
"Always show message timestamps": "Nachrichten-Zeitstempel immer anzeigen",
|
||||
"Authentication": "Authentifizierung",
|
||||
@ -711,7 +710,6 @@
|
||||
"New passwords don't match": "Die neuen Passwörter stimmen nicht überein",
|
||||
"olm version:": "Version von olm:",
|
||||
"Passwords can't be empty": "Passwortfelder dürfen nicht leer sein",
|
||||
"Registration required": "Registrierung erforderlich",
|
||||
"Report it": "Melde ihn",
|
||||
"riot-web version:": "Version von riot-web:",
|
||||
"Scroll to bottom of page": "Zum Ende der Seite springen",
|
||||
|
@ -167,7 +167,6 @@
|
||||
"zu": "Ζουλού",
|
||||
"id": "Ινδονησιακά",
|
||||
"lv": "Λετονικά",
|
||||
"A registered account is required for this action": "Ένας εγγεγραμμένος λογαριασμός απαιτείται για αυτή την ενέργεια",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "Ένα μήνυμα στάλθηκε στο +%(msisdn)s. Παρακαλώ γράψε τον κωδικό επαλήθευσης που περιέχει",
|
||||
"Access Token:": "Κωδικός Πρόσβασης:",
|
||||
"Always show message timestamps": "Δείχνε πάντα ένδειξη ώρας στα μηνύματα",
|
||||
|
@ -119,7 +119,6 @@
|
||||
"zh-sg":"Chinese (Singapore)",
|
||||
"zh-tw":"Chinese (Taiwan)",
|
||||
"zu":"Zulu",
|
||||
"A registered account is required for this action": "A registered account is required for this action",
|
||||
"a room": "a room",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "A text message has been sent to +%(msisdn)s. Please enter the verification code it contains",
|
||||
"Accept": "Accept",
|
||||
@ -452,7 +451,6 @@
|
||||
"Revoke Moderator": "Revoke Moderator",
|
||||
"Refer a friend to Riot:": "Refer a friend to Riot:",
|
||||
"Register": "Register",
|
||||
"Registration required": "Registration required",
|
||||
"rejected": "rejected",
|
||||
"%(targetName)s rejected the invitation.": "%(targetName)s rejected the invitation.",
|
||||
"Reject invitation": "Reject invitation",
|
||||
|
@ -119,7 +119,6 @@
|
||||
"zh-sg": "Chinese (Singapore)",
|
||||
"zh-tw": "Chinese (Taiwan)",
|
||||
"zu": "Zulu",
|
||||
"A registered account is required for this action": "A registered account is required for this action",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "A text message has been sent to +%(msisdn)s. Please enter the verification code it contains",
|
||||
"accept": "accept",
|
||||
"%(targetName)s accepted an invitation.": "%(targetName)s accepted an invitation.",
|
||||
@ -418,7 +417,6 @@
|
||||
"Revoke Moderator": "Revoke Moderator",
|
||||
"Refer a friend to Riot:": "Refer a friend to Riot:",
|
||||
"Register": "Register",
|
||||
"Registration required": "Registration required",
|
||||
"rejected": "rejected",
|
||||
"%(targetName)s rejected the invitation.": "%(targetName)s rejected the invitation.",
|
||||
"Reject invitation": "Reject invitation",
|
||||
|
@ -119,7 +119,6 @@
|
||||
"zh-sg": "Chino (Singapur)",
|
||||
"zh-tw": "Chino (Taiwanés)",
|
||||
"zu": "Zulú",
|
||||
"A registered account is required for this action": "Una cuenta registrada es necesaria para esta acción",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "Un mensaje de texto ha sido enviado a +%(msisdn)s. Por favor ingrese el código de verificación que lo contiene",
|
||||
"accept": "Aceptar",
|
||||
"%(targetName)s accepted an invitation.": "%(targetName)s ha aceptado una invitación.",
|
||||
|
@ -272,7 +272,6 @@
|
||||
"Failed to set display name": "Échec lors de l'enregistrement du nom d'affichage",
|
||||
"Failed to set up conference call": "Échec lors de l’établissement de l’appel",
|
||||
"Failed to toggle moderator status": "Échec lors de l’établissement du statut de modérateur",
|
||||
"A registered account is required for this action": "Il est nécessaire d’avoir un compte enregistré pour effectuer cette action",
|
||||
"%(targetName)s accepted the invitation for %(displayName)s.": "%(targetName)s a accepté l’invitation de %(displayName)s.",
|
||||
"Access Token:": "Jeton d’accès :",
|
||||
"Always show message timestamps": "Toujours afficher l'heure des messages",
|
||||
@ -405,7 +404,6 @@
|
||||
"Reason": "Raison",
|
||||
"Revoke Moderator": "Révoquer le Modérateur",
|
||||
"Refer a friend to Riot:": "Recommander Riot à un ami :",
|
||||
"Registration required": "Inscription requise",
|
||||
"rejected": "rejeté",
|
||||
"%(targetName)s rejected the invitation.": "%(targetName)s a rejeté l’invitation.",
|
||||
"Reject invitation": "Rejeter l'invitation",
|
||||
|
@ -120,7 +120,6 @@
|
||||
"zh-sg": "Chinees (Singapore)",
|
||||
"zh-tw": "Chinees (Taiwan)",
|
||||
"zu": "Zulu",
|
||||
"A registered account is required for this action": "Voor deze actie is een geregistreerd account nodig",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "Voer alsjeblieft de verificatiecode in die is verstuurd naar +%(msisdn)s",
|
||||
"accept": "accepteer",
|
||||
"%(targetName)s accepted an invitation.": "%(targetName)s heeft een uitnodiging geaccepteerd.",
|
||||
|
@ -700,7 +700,6 @@
|
||||
"%(oneUser)schanged their avatar %(repeats)s times": "%(oneUser)salterou sua imagem pública %(repeats)s vezes",
|
||||
"%(severalUsers)schanged their avatar": "%(severalUsers)salteraram sua imagem pública",
|
||||
"Ban": "Banir",
|
||||
"A registered account is required for this action": "Uma conta registrada é necessária para esta ação",
|
||||
"Access Token:": "Token de acesso:",
|
||||
"Always show message timestamps": "Sempre mostrar as datas das mensagens",
|
||||
"Authentication": "Autenticação",
|
||||
@ -716,7 +715,6 @@
|
||||
"Mute": "Silenciar",
|
||||
"olm version:": "versão do olm:",
|
||||
"Operation failed": "A operação falhou",
|
||||
"Registration required": "Registro obrigatório",
|
||||
"Remove %(threePid)s?": "Remover %(threePid)s?",
|
||||
"Report it": "Reportar",
|
||||
"riot-web version:": "versão do riot-web:",
|
||||
|
@ -700,7 +700,6 @@
|
||||
"%(oneUser)schanged their avatar %(repeats)s times": "%(oneUser)salterou sua imagem pública %(repeats)s vezes",
|
||||
"%(severalUsers)schanged their avatar": "%(severalUsers)salteraram sua imagem pública",
|
||||
"Ban": "Banir",
|
||||
"A registered account is required for this action": "Uma conta registrada é necessária para esta ação",
|
||||
"Access Token:": "Token de acesso:",
|
||||
"Always show message timestamps": "Sempre mostrar as datas das mensagens",
|
||||
"Authentication": "Autenticação",
|
||||
@ -716,7 +715,6 @@
|
||||
"Mute": "Mudo",
|
||||
"olm version:": "versão do olm:",
|
||||
"Operation failed": "A operação falhou",
|
||||
"Registration required": "Registro obrigatório",
|
||||
"Remove %(threePid)s?": "Remover %(threePid)s?",
|
||||
"Report it": "Reportar",
|
||||
"riot-web version:": "versão do riot-web:",
|
||||
|
@ -473,7 +473,6 @@
|
||||
"Failed to forget room %(errCode)s": "Не удалось забыть комнату %(errCode)s",
|
||||
"Failed to join room": "Не удалось присоединиться к комнате",
|
||||
"Failed to join the room": "Не удалось войти в комнату",
|
||||
"A registered account is required for this action": "Необходима зарегистрированная учетная запись для этого действия",
|
||||
"Access Token:": "Токен:",
|
||||
"Always show message timestamps": "Всегда показывать время сообщения",
|
||||
"Authentication": "Авторизация",
|
||||
@ -531,7 +530,6 @@
|
||||
"Press": "Нажать",
|
||||
"Profile": "Профиль",
|
||||
"Reason": "Причина",
|
||||
"Registration required": "Требуется регистрация",
|
||||
"rejected": "отклонено",
|
||||
"%(targetName)s rejected the invitation.": "%(targetName)s отклонил приглашение.",
|
||||
"Reject invitation": "Отклонить приглашение",
|
||||
|
@ -119,7 +119,6 @@
|
||||
"zh-sg": "Kinesiska (Singapore)",
|
||||
"zh-tw": "Kinesiska (Taiwan)",
|
||||
"zu": "Zulu",
|
||||
"A registered account is required for this action": "Ett registrerat konto behövs för den här handlingen",
|
||||
"A text message has been sent to +%(msisdn)s. Please enter the verification code it contains": "Ett SMS har skickats till +%(msisdn)s. Vänligen ange verifieringskoden ur meddelandet",
|
||||
"accept": "acceptera",
|
||||
"%(targetName)s accepted an invitation.": "%(targetName)s accepterade en inbjudan.",
|
||||
|
@ -262,7 +262,6 @@
|
||||
"Privileged Users": "ผู้ใช้ที่มีสิทธิพิเศษ",
|
||||
"Revoke Moderator": "เพิกถอนผู้ช่วยดูแล",
|
||||
"Refer a friend to Riot:": "แนะนำเพื่อนให้รู้จัก Riot:",
|
||||
"Registration required": "ต้องลงทะเบียนก่อน",
|
||||
"rejected": "ปฏิเสธแล้ว",
|
||||
"%(targetName)s rejected the invitation.": "%(targetName)s ปฏิเสธคำเชิญแล้ว",
|
||||
"Reject invitation": "ปฏิเสธคำเชิญ",
|
||||
|
@ -340,7 +340,6 @@
|
||||
"device id: ": "裝置 id:",
|
||||
"Reason": "原因",
|
||||
"Register": "注冊",
|
||||
"Registration required": "要求註冊",
|
||||
"rejected": "拒絕",
|
||||
"Default server": "默認的伺服器",
|
||||
"Custom server": "自定的伺服器",
|
||||
|
Loading…
Reference in New Issue
Block a user