This is in order to accomodate more stateful objects by separating the context menu specific actions and constants into their own files.
13 lines
326 B
JavaScript
13 lines
326 B
JavaScript
import * as types from '../constants/contextMenu'
|
|
|
|
export function updateContextMenu(items) {
|
|
return { type: types.UPDATE_CONTEXT_MENU, items }
|
|
}
|
|
|
|
export function openContextMenu(x, y){
|
|
return {type: types.OPEN_CONTEXT_MENU, x, y}
|
|
}
|
|
|
|
export function closeContextMenu(){
|
|
return {type: types.CLOSE_CONTEXT_MENU}
|
|
}
|