From 87d46f7ef5595cb75ae4e5a5dcae7a3de8cc51fb 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" --- app/ui/downloadCompleted.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/ui/downloadCompleted.js b/app/ui/downloadCompleted.js index 1dfec45a..22fd7ba4 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('trySendDescription')}

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