diff --git a/src/client/assets/translations/fork/i18n_fork.js b/src/client/assets/translations/fork/i18n_fork.js index 31ce8f1..0f04014 100644 --- a/src/client/assets/translations/fork/i18n_fork.js +++ b/src/client/assets/translations/fork/i18n_fork.js @@ -13,6 +13,7 @@ module.exports = { en: { 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", @@ -70,6 +71,7 @@ module.exports = { es: { 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", diff --git a/src/views/fork/identities.js b/src/views/fork/identities.js index 5f9ef3b..8ad0c2a 100644 --- a/src/views/fork/identities.js +++ b/src/views/fork/identities.js @@ -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) => { @@ -52,7 +52,10 @@ module.exports = ({ i18n, html }) => { input({ type: "text", name: "account", placeholder: i18n.identitiesNewName, 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)) ) ); };