mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Disable function dropdown when no field selected
This commit is contained in:
parent
767af9e478
commit
bfe2bdecc0
1 changed files with 5 additions and 3 deletions
|
@ -87,9 +87,11 @@ 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>
|
||||||
<IconButton on:mount={createDropdown}>
|
<WithContext key={disabledKey} let:context={disabled}>
|
||||||
{@html functionIcon}
|
<IconButton {disabled} on:mount={createDropdown}>
|
||||||
</IconButton>
|
{@html functionIcon}
|
||||||
|
</IconButton>
|
||||||
|
</WithContext>
|
||||||
|
|
||||||
<DropdownMenu id={menuId}>
|
<DropdownMenu id={menuId}>
|
||||||
<WithShortcut
|
<WithShortcut
|
||||||
|
|
Loading…
Reference in a new issue