feat ContextMenu: Rename and Delete

This commit is contained in:
Mahdi Dibaiee
2015-09-03 15:02:46 +04:30
parent ee6f5d6ffb
commit 79ae4c1a47
94 changed files with 4211 additions and 2216 deletions

32
src/js/actions/menu.js Normal file
View 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
}
}