feat(calendar): add copy to clipboard button in "links to calendar" panel

This commit is contained in:
Hivert Quentin
2023-05-19 13:14:55 +02:00
parent 6050c4ee61
commit 5c4d467d06
4 changed files with 47 additions and 12 deletions
@@ -293,10 +293,16 @@
var vm = this;
vm.calendar = calendar;
vm.close = close;
vm.clipboard = clipboard
function close() {
$mdDialog.hide();
}
function clipboard(elem_id) {
let linkUrl = document.getElementById(elem_id);
navigator.clipboard.writeText(linkUrl.value);
}
}
};