diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-03-30 12:45:23 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-03-30 12:45:23 +0200 |
commit | 48bcf4d6e89658abac5405683e823c68f27248f0 (patch) | |
tree | 1acfd9ce37c661f4616b6ecfea199dd1e63c0119 /app/javascript/flavours/glitch/actions/dropdown_menu.js | |
parent | 2871a82fccf2b60ca25379f0557d457fae5df534 (diff) |
[Glitch] Remove pointer events on the entire UI when a dropdown menu is open
Port 913a38111ff5b0cb7f412bec93e8314859c88855 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/actions/dropdown_menu.js')
-rw-r--r-- | app/javascript/flavours/glitch/actions/dropdown_menu.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/actions/dropdown_menu.js b/app/javascript/flavours/glitch/actions/dropdown_menu.js new file mode 100644 index 000000000..217ba4e74 --- /dev/null +++ b/app/javascript/flavours/glitch/actions/dropdown_menu.js @@ -0,0 +1,10 @@ +export const DROPDOWN_MENU_OPEN = 'DROPDOWN_MENU_OPEN'; +export const DROPDOWN_MENU_CLOSE = 'DROPDOWN_MENU_CLOSE'; + +export function openDropdownMenu(id, placement) { + return { type: DROPDOWN_MENU_OPEN, id, placement }; +} + +export function closeDropdownMenu(id) { + return { type: DROPDOWN_MENU_CLOSE, id }; +} |