fix rename: Fixed Renaming Directories not working properly
feat dialogs.error: Added Error dialogs to show errors
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user