mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
Merge pull request #170 from sebe324/WindowReferBugFix
UIWindowRefer.js bugfix
This commit is contained in:
commit
fd185b955e
@ -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 += `<div>`;
|
||||
@ -32,7 +30,7 @@ async function UIWindowRefer(options){
|
||||
h += `<p style="text-align: center; font-size: 16px; padding: 20px; font-weight: 400; margin: -10px 10px 20px 10px; -webkit-font-smoothing: antialiased; color: #5f626d;">${i18n('refer_friends_c2a')}</p>`;
|
||||
h += `<label style="font-weight: bold;">${i18n('invite_link')}</label>`;
|
||||
h += `<input type="text" style="margin-bottom:10px;" class="downloadable-link" readonly />`;
|
||||
h += `<button class="button button-primary copy-downloadable-link" style="width:130px;">${copy_btn_text}</button>`
|
||||
h += `<button class="button button-primary copy-downloadable-link" style="white-space:nowrap; text-align:center;">${i18n('copy_link')}</button>`
|
||||
h += `<img class="share-copy-link-on-social" src="${window.icons['share-outline.svg']}">`;
|
||||
h += `</div>`;
|
||||
|
||||
@ -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);
|
||||
});
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user