Fix toolbar actions have no tooltip set

This commit is contained in:
Hadi Nategh 2022-08-18 11:10:39 +02:00
parent 61013d28cf
commit c052b2e9af

View File

@ -651,6 +651,7 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
if (action.caption)
{
widget.statustext = action.caption;
if ((this.countActions <= parseInt(this.view_range) ||
this.preference[action.id] || !action.iconUrl) &&
!(isCheckbox && isToggleSwitch)) // no caption for slideswitch checkboxes