Beginning responsive
This commit is contained in:
@ -40,6 +40,12 @@ export function lazyLoading( start ){
|
||||
}
|
||||
}
|
||||
|
||||
export function toggleSidebar(){
|
||||
return {
|
||||
type: 'TOGGLE_SIDEBAR'
|
||||
}
|
||||
}
|
||||
|
||||
export function dragStart( e, context, victims, victims_indexes = false ){
|
||||
return {
|
||||
type: 'DRAG_START',
|
||||
|
||||
@ -9,11 +9,15 @@ export default function reducer(ui = {}, action){
|
||||
|
||||
|
||||
/**
|
||||
* View views
|
||||
* UI views and view modes
|
||||
**/
|
||||
|
||||
case 'SET_VIEW':
|
||||
return Object.assign({}, ui, action.view)
|
||||
|
||||
case 'TOGGLE_SIDEBAR':
|
||||
return Object.assign({}, ui, { sidebar_open : !ui.sidebar_open })
|
||||
|
||||
|
||||
/**
|
||||
* Context menu
|
||||
|
||||
Reference in New Issue
Block a user