diff --git a/app/ui/error.js b/app/ui/error.js index 5de79358..1996c841 100644 --- a/app/ui/error.js +++ b/app/ui/error.js @@ -3,6 +3,7 @@ const assets = require('../../common/assets'); const modal = require('./modal'); module.exports = function(state, emit) { + const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink'; return html`
${state.modal && modal(state, emit)} @@ -13,12 +14,17 @@ module.exports = function(state, emit) { ${state.translate('errorPageHeader')} -

+

${state.translate('trySendDescription')}

${state.translate('sendYourFilesLink')}${state.translate(btnText)}

diff --git a/app/ui/notFound.js b/app/ui/notFound.js index d0364572..ad70bb5d 100644 --- a/app/ui/notFound.js +++ b/app/ui/notFound.js @@ -3,6 +3,7 @@ const assets = require('../../common/assets'); const modal = require('./modal'); module.exports = function(state, emit) { + const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink'; return html`
${state.modal && modal(state, emit)} @@ -13,12 +14,17 @@ module.exports = function(state, emit) { ${state.translate('expiredTitle')} -

+

${state.translate('trySendDescription')}

${state.translate('sendYourFilesLink')}${state.translate(btnText)}