From 28a39b390af0947466da9b323df1564d0eb9ec23 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 18 Jan 2024 08:35:12 -0700 Subject: [PATCH] * Api: Fix favorites button in nextmatch header did not work --- api/js/etemplate/Et2Favorites/Et2Favorites.ts | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/api/js/etemplate/Et2Favorites/Et2Favorites.ts b/api/js/etemplate/Et2Favorites/Et2Favorites.ts index 97ca70734e..3fa70d977d 100644 --- a/api/js/etemplate/Et2Favorites/Et2Favorites.ts +++ b/api/js/etemplate/Et2Favorites/Et2Favorites.ts @@ -178,7 +178,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea statustext="${this.egw().lang("Delete")}">`; return html` - + ${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 *