@ -160,6 +160,7 @@
"edited": "Edited",
"disabled": "Disabled",
"select": "Select",
"copied": "Copied",
"user-search-prompt": "Type something here to find users...",
"hidden": "Hidden",
@ -110,7 +110,12 @@ define('forum/chats', [
if (err) {
return alerts.error(err);
}
ipEl.html(ip);
ipEl.text(ip);
ipEl.on('click', () => {
navigator.clipboard.writeText(ip);
ipEl.translateText('[[global:copied]]');
setTimeout(() => ipEl.text(ip), 2000);
});
};