Update downloadCompleted.js

${WEB_UI.TRY_SEND_URL}
This commit is contained in:
alexdx-ca 2023-05-30 17:33:38 -04:00 committed by GitHub
parent 54409e92fe
commit 032bfc99b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const html = require('choo/html');
const assets = require('../../common/assets');
module.exports = function(state) {
const WEB_UI = state.WEB_UI;
const btnText = state.user.loggedIn ? 'okButton' : 'sendYourFilesLink';
return html`
<div
@ -23,7 +24,7 @@ module.exports = function(state) {
${state.translate('trySendDescription')}
</p>
<p class="my-5">
<a href="/" class="btn rounded-lg flex items-center mt-4" role="button"
<a href="${WEB_UI.TRY_SEND_URL}" class="btn rounded-lg flex items-center mt-4" role="button"
>${state.translate(btnText)}</a
>
</p>