UI actions; Context menu
This commit is contained in:
19
src/js/services/ui/actions.js
Executable file
19
src/js/services/ui/actions.js
Executable 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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user