webui: add copied to clipboard notification (#7038)

This commit is contained in:
Diego Heras 2020-02-01 19:35:20 +01:00 committed by GitHub
parent 41beca0afc
commit 72ff71de9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ function copyToClipboard(text) {
var succeed; var succeed;
try { try {
succeed = document.execCommand("copy"); succeed = document.execCommand("copy");
doNotify("Copied to clipboard!", "success", "glyphicon glyphicon-ok");
} catch (e) { } catch (e) {
succeed = false; succeed = false;
} }