add feedback for copying to clipboard

fix-non-showing-inputs
Moe Alam 2020-10-03 12:02:28 -07:00
parent b200a7d1bc
commit 53b9c42c2c
3 changed files with 7 additions and 1 deletions

View File

@ -34,6 +34,7 @@
"CPU": "CPU",
"Cores": "Cores",
"Threads": "Threads",
"Copied to Clipboard": "Copied to Clipboard",
"Download Bandwidth": "Download Bandwidth",
"Upload Bandwidth": "Upload Bandwidth",
"on": "on",

View File

@ -119,6 +119,11 @@ $(document).ready(function(){
if(selectedServer && selectedServer.host){
var href = `http://${selectedServer.host}:${selectedServer.webPort}/s/${apiKey}?p2p=1`
copyToClipboard(href)
new PNotify({
type: 'success',
title: lang['Copied to Clipboard'],
text: `<div style="word-break: break-all;">${href}</div>`,
})
}else{
new PNotify({
type: 'warning',

View File

@ -8,7 +8,7 @@
font-size: 9pt;
}
blockquote {
background: #000000;
background: #073c3e;
height: 100%;
border-radius: 15px;
color: #fff;