From c507e3ead7289b0680905ac3b4152231a6502fe5 Mon Sep 17 00:00:00 2001 From: sebe324 Date: Sun, 24 Mar 2024 20:05:22 +0100 Subject: [PATCH 1/2] Fixed Copy link button bug in the refer window Also changed one word in the polish translation because I forgot to change it --- src/UI/UIWindowRefer.js | 8 +++----- src/i18n/translations/pl.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/UI/UIWindowRefer.js b/src/UI/UIWindowRefer.js index aba0bc0e..97c00d2a 100644 --- a/src/UI/UIWindowRefer.js +++ b/src/UI/UIWindowRefer.js @@ -22,8 +22,6 @@ import UIPopover from './UIPopover.js' async function UIWindowRefer(options){ let h = ''; - let copy_btn_text = 'Copy Link'; - let copied_btn_text = 'Copied!'; const url = `${gui_origin}/?r=${user.referral_code}`; h += `
`; @@ -32,7 +30,7 @@ async function UIWindowRefer(options){ h += `

${i18n('refer_friends_c2a')}

`; h += ``; h += ``; - h += `` + h += `` h += ``; h += `
`; @@ -110,9 +108,9 @@ async function UIWindowRefer(options){ document.execCommand('copy'); } - $(this).html(copied_btn_text); + $(this).html(i18n('copying')); setTimeout(function(){ - $(copy_btn).html(copy_btn_text); + $(copy_btn).html(i18n('copy_link')); }, 1000); }); } diff --git a/src/i18n/translations/pl.js b/src/i18n/translations/pl.js index 0d66550b..f958a2c5 100644 --- a/src/i18n/translations/pl.js +++ b/src/i18n/translations/pl.js @@ -48,7 +48,7 @@ const pl = { continue: "Kontynuuj", copy: 'Kopiuj', copy_link: "Kopiuj Link", - copying: "Copying", + copying: "Kopiowanie", cover: 'Zakryj', create_account: "Stwórz konto", create_free_account: "Stwórz darmowe konto", From 80021bd327c40fc0e822bc3228a867fca4ce82d1 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sun, 24 Mar 2024 13:25:47 -0700 Subject: [PATCH 2/2] Fixes styling of the button to remain on the left --- src/UI/UIWindowRefer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/UIWindowRefer.js b/src/UI/UIWindowRefer.js index 97c00d2a..bebe6164 100644 --- a/src/UI/UIWindowRefer.js +++ b/src/UI/UIWindowRefer.js @@ -30,7 +30,7 @@ async function UIWindowRefer(options){ h += `

${i18n('refer_friends_c2a')}

`; h += ``; h += ``; - h += `` + h += `` h += ``; h += ``;