mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +00:00
feat(calendar): add copy to clipboard button in "links to calendar" panel
This commit is contained in:
1 parent
6050c4ee61
commit
5c4d467d06
4 files changed
+47
-12
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -12,6 +12,10 @@ md-input-container {
|
||||
&.md-no-flex {
|
||||
flex: none !important;
|
||||
}
|
||||
&.md-input-clipboard {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
.md-errors-spacer {
|
||||
// Temporary fix for https://github.com/angular/material/issues/6214
|
||||
min-height: 0 !important;
|
||||
|
||||
Reference in new issue
Block a user