UI actions; Context menu

This commit is contained in:
James Barnsley
2016-10-27 10:02:12 +13:00
parent 05e131ce75
commit 560fb4df19
19 changed files with 378 additions and 46 deletions

19
src/js/services/ui/actions.js Executable file
View File

@ -0,0 +1,19 @@
export function showContextMenu( e, context = false, data ){
return {
type: 'UI_SHOW_CONTEXT_MENU',
position_x: e.clientX,
position_y: e.clientY,
context: context,
data: data
}
}
export function hideContextMenu(){
return {
type: 'UI_HIDE_CONTEXT_MENU'
}
}