mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
Adapt use of createDropdown for editor buttons
This commit is contained in:
parent
76b005991e
commit
cedbc35850
2 changed files with 8 additions and 2 deletions
|
@ -65,7 +65,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<ButtonGroupItem>
|
<ButtonGroupItem>
|
||||||
<WithDropdownMenu let:createDropdown let:menuId>
|
<WithDropdownMenu let:createDropdown let:menuId>
|
||||||
<OnlyEditable let:disabled>
|
<OnlyEditable let:disabled>
|
||||||
<IconButton {disabled} on:mount={createDropdown}>
|
<IconButton
|
||||||
|
{disabled}
|
||||||
|
on:mount={(event) => createDropdown(event.detail.button)}
|
||||||
|
>
|
||||||
{@html listOptionsIcon}
|
{@html listOptionsIcon}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</OnlyEditable>
|
</OnlyEditable>
|
||||||
|
|
|
@ -88,7 +88,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
<ButtonGroupItem>
|
<ButtonGroupItem>
|
||||||
<WithDropdownMenu let:createDropdown let:menuId>
|
<WithDropdownMenu let:createDropdown let:menuId>
|
||||||
<WithContext key={disabledKey} let:context={disabled}>
|
<WithContext key={disabledKey} let:context={disabled}>
|
||||||
<IconButton {disabled} on:mount={createDropdown}>
|
<IconButton
|
||||||
|
{disabled}
|
||||||
|
on:mount={(event) => createDropdown(event.detail.button)}
|
||||||
|
>
|
||||||
{@html functionIcon}
|
{@html functionIcon}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</WithContext>
|
</WithContext>
|
||||||
|
|
Loading…
Reference in a new issue