mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
chore: refactor nexcloud plugin- related to NC-addressbook
This commit is contained in:
parent
2e3fbe0a12
commit
552a91acc2
5 changed files with 200 additions and 163 deletions
|
|
@ -13,14 +13,16 @@
|
|||
addEventListener('rl-view-model', e => {
|
||||
if ('SystemDropDown' === e.detail.viewModelTemplateID) {
|
||||
const container = e.detail.viewModelDom.querySelector('.dropdown-menu');
|
||||
if (container) {
|
||||
for (i = 0; i < container.children.length; i++) {
|
||||
const element = container.children[i];
|
||||
const attr = element.getAttribute("data-bind");
|
||||
if (attr && attr.includes("visible: allowContacts")) {
|
||||
element.remove();
|
||||
break;
|
||||
}
|
||||
if (!container) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < container.children.length; i++) {
|
||||
const element = container.children[i];
|
||||
const attr = element.getAttribute("data-bind");
|
||||
if (attr && attr.includes("visible: allowContacts")) {
|
||||
element.remove();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -29,14 +31,16 @@
|
|||
addEventListener('rl-view-model', e => {
|
||||
if ('PopupsCompose' === e.detail.viewModelTemplateID) {
|
||||
const container = e.detail.viewModelDom.querySelector('.pull-right');
|
||||
if (container) {
|
||||
for (i = 0; i < container.children.length; i++) {
|
||||
const element = container.children[i];
|
||||
const attr = element.getAttribute("data-bind");
|
||||
if (attr && attr.includes("visible: allowContacts")) {
|
||||
element.remove();
|
||||
break;
|
||||
}
|
||||
if(!container) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < container.children.length; i++) {
|
||||
const element = container.children[i];
|
||||
const attr = element.getAttribute("data-bind");
|
||||
if (attr && attr.includes("visible: allowContacts")) {
|
||||
element.remove();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue