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

View File

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