Function
enable
(shouldEnable: boolean, menu?: string | null)
Source from the content-addressed store, hash-verified
| 40 | }; |
| 41 | |
| 42 | const enable = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => { |
| 43 | const menuEl = await get(menu); |
| 44 | if (menuEl) { |
| 45 | menuEl.disabled = !shouldEnable; |
| 46 | } |
| 47 | return menuEl; |
| 48 | }; |
| 49 | |
| 50 | const swipeGesture = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => { |
| 51 | const menuEl = await get(menu); |
Callers
nothing calls this directly
Tested by
no test coverage detected