From e15c8a24f11cc5236479b9f37ae7c40f90759750 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 24 Sep 2024 16:57:47 -0600 Subject: [PATCH] Et2LinkList: Fix screwed up merge & contextmenu --- api/js/etemplate/Et2Link/Et2LinkList.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkList.ts b/api/js/etemplate/Et2Link/Et2LinkList.ts index 048a6ea552..89254ec8d3 100644 --- a/api/js/etemplate/Et2Link/Et2LinkList.ts +++ b/api/js/etemplate/Et2Link/Et2LinkList.ts @@ -71,7 +71,7 @@ export class Et2LinkList extends Et2LinkString /* CSS for child elements */ - ::slotted(*):after { + et2-link::part(title):after { /* Reset from Et2LinkString */ content: initial; } @@ -252,7 +252,7 @@ export class Et2LinkList extends Et2LinkString return html`
- + ${this._linkTemplate(link)}
`; } @@ -594,7 +594,7 @@ export class Et2LinkList extends Et2LinkString this._createContextMenu(); } // Find the link - let link = this.querySelector("et2-link[slot='" + _ev.currentTarget.id + "']"); + let link = _ev.currentTarget.querySelector("et2-link"); let _link_data = Object.assign({app: link.app, id: link.entryId}, link.dataset); // Comment only available if link_id is there and not readonly @@ -615,7 +615,7 @@ export class Et2LinkList extends Et2LinkString protected _set_comment(link, comment) { - let remark = this.querySelector("et2-link[slot='" + this._get_row_id(link) + "']"); + let remark = this.shadowRoot.querySelector("#" + this._get_row_id(link) + " et2-link"); if(!remark) { console.warn("Could not find link to comment on", link);