about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/dropdown_menu.js
blob: 14f2939c78db9cdfdd25612176a917f50876200d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
export const DROPDOWN_MENU_OPEN = 'DROPDOWN_MENU_OPEN';
export const DROPDOWN_MENU_CLOSE = 'DROPDOWN_MENU_CLOSE';

export function openDropdownMenu(id, placement, keyboard) {
  return { type: DROPDOWN_MENU_OPEN, id, placement, keyboard };
}

export function closeDropdownMenu(id) {
  return { type: DROPDOWN_MENU_CLOSE, id };
}