mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
* Api: Fix favorites button in nextmatch header did not work
This commit is contained in:
parent
5f5d8be49a
commit
28a39b390a
@ -178,7 +178,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
|||||||
statustext="${this.egw().lang("Delete")}"></et2-image>`;
|
statustext="${this.egw().lang("Delete")}"></et2-image>`;
|
||||||
|
|
||||||
return html`
|
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 : ""}
|
${option.value !== Et2Favorites.ADD_VALUE ? radio : ""}
|
||||||
${icon}
|
${icon}
|
||||||
${option.label}
|
${option.label}
|
||||||
@ -442,24 +442,6 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
|||||||
return false;
|
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
|
* Apply a favorite to the app or nextmatch
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user