* Api: Fix favorites button in nextmatch header did not work

This commit is contained in:
nathan 2024-01-18 08:35:12 -07:00
parent 5f5d8be49a
commit 28a39b390a

View File

@ -178,7 +178,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
statustext="${this.egw().lang("Delete")}"></et2-image>`;
return html`
<sl-menu-item value="${option.value}" ?checked="${option.value == this._preferred}">
<sl-menu-item value="${option.value}">
${option.value !== Et2Favorites.ADD_VALUE ? radio : ""}
${icon}
${option.label}
@ -442,24 +442,6 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
return false;
}
/**
* Clicked the main button
*
* @param {MouseEvent} _ev
* @returns {boolean}
* @protected
*/
_handleSelect(_ev : MouseEvent) : boolean
{
// Apply preferred filter - make sure it's an object, and not a reference
if(this._preferred && this.favoriteByID(this._preferred))
{
this._apply_favorite(this._preferred);
}
_ev.stopImmediatePropagation();
return false;
}
/**
* Apply a favorite to the app or nextmatch
*