add feedback for copying to clipboard
parent
b200a7d1bc
commit
53b9c42c2c
|
@ -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",
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
font-size: 9pt;
|
||||
}
|
||||
blockquote {
|
||||
background: #000000;
|
||||
background: #073c3e;
|
||||
height: 100%;
|
||||
border-radius: 15px;
|
||||
color: #fff;
|
||||
|
|
Loading…
Reference in New Issue