From 4413fc75a3ca6e7ca418e46f5e0fedb922effd66 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 29 Jul 2020 09:53:47 -0700 Subject: [PATCH] show "OK" button on complete page when logged in instead of "Try Firefox Send" Co-authored-by: timvisee --- app/ui/downloadCompleted.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/ui/downloadCompleted.js b/app/ui/downloadCompleted.js index c357c5f1..27a507a4 100644 --- a/app/ui/downloadCompleted.js +++ b/app/ui/downloadCompleted.js @@ -2,6 +2,7 @@ const html = require('choo/html'); const assets = require('../../common/assets'); module.exports = function(state) { + const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink'; return html`
${state.translate('downloadFinish')} - -

+ +

${state.translate('trySendDescription')}

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