fix rename: Fixed Renaming Directories not working properly

feat dialogs.error: Added Error dialogs to show errors
This commit is contained in:
Mahdi Dibaiee
2015-09-04 02:56:33 +04:30
parent 4967c03eed
commit ffb7c68510
14 changed files with 1396 additions and 299 deletions

View File

@ -1,32 +1,33 @@
import { MENU } from 'actions/types';
export function show(id, x, y) {
export function show(id, props = {}) {
return {
type: MENU,
active: true,
id, x, y
id, ...props
}
}
export function hide(id) {
export function hide(id, props = {}) {
return {
type: MENU,
active: false,
id
id, ...props
}
}
export function toggle(id, x, y) {
export function toggle(id, props = {}) {
return {
type: MENU,
active: 'toggle',
id, x, y
id, ...props
}
}
export function hideAll() {
export function hideAll(props = {}) {
return {
type: MENU,
active: false
active: false,
...props
}
}