feat ContextMenu: Rename and Delete
This commit is contained in:
32
src/js/actions/menu.js
Normal file
32
src/js/actions/menu.js
Normal file
@ -0,0 +1,32 @@
|
||||
import { MENU } from 'actions/types';
|
||||
|
||||
export function show(id, x, y) {
|
||||
return {
|
||||
type: MENU,
|
||||
active: true,
|
||||
id, x, y
|
||||
}
|
||||
}
|
||||
|
||||
export function hide(id) {
|
||||
return {
|
||||
type: MENU,
|
||||
active: false,
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
export function toggle(id, x, y) {
|
||||
return {
|
||||
type: MENU,
|
||||
active: 'toggle',
|
||||
id, x, y
|
||||
}
|
||||
}
|
||||
|
||||
export function hideAll() {
|
||||
return {
|
||||
type: MENU,
|
||||
active: false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user