identidades: enlace a exportar e importar
Sacar o meter una identidad ya existente lo hace el modulo legacy, que es quien sabe cifrar el secret con una contraseña. Se enlaza desde la lista para que este donde se busca.
This commit is contained in:
parent
f465fb2288
commit
d843d47374
2 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ module.exports = {
|
|||
fediverse: "Fediverse",
|
||||
identitiesRestart: "Restart now",
|
||||
identitiesRestarting: "Restarting. Open Oasis again in a few seconds.",
|
||||
identitiesBackup: "Export or import an identity",
|
||||
identitiesTitle: "Identities",
|
||||
identitiesDescription: "Each identity lives in its own folder, with its own key, database and blobs. The change applies on restart.",
|
||||
identitiesActive: "In use",
|
||||
|
|
@ -76,6 +77,7 @@ module.exports = {
|
|||
fediverse: "Fediverso",
|
||||
identitiesRestart: "Reiniciar ahora",
|
||||
identitiesRestarting: "Reiniciando. Vuelve a abrir Oasis en unos segundos.",
|
||||
identitiesBackup: "Exportar o importar una identidad",
|
||||
identitiesTitle: "Identidades",
|
||||
identitiesDescription: "Cada identidad vive en su propia carpeta, con su clave, su base de datos y sus blobs. El cambio se aplica al reiniciar.",
|
||||
identitiesActive: "En uso",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
module.exports = ({ i18n, html }) => {
|
||||
const { form, button, div, h2, p, section, input, span, ul, li } = html;
|
||||
const { form, button, div, h2, p, section, input, span, ul, li, a } = html;
|
||||
const accounts = require('../../backend/accounts.js');
|
||||
|
||||
const renderIdentities = (activeAccount) => {
|
||||
|
|
@ -60,6 +60,9 @@ module.exports = ({ i18n, html }) => {
|
|||
maxlength: "32", autocomplete: "off" }),
|
||||
button({ type: "submit" }, i18n.identitiesCreate)
|
||||
),
|
||||
// sacar o meter una identidad ya existente es cosa del modulo legacy, que
|
||||
// es el que sabe cifrar el secret con una contraseña
|
||||
p(a({ href: "/legacy", class: "identity-legacy" }, i18n.identitiesBackup)),
|
||||
restart
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue