Beginning responsive

This commit is contained in:
James Barnsley
2016-11-21 21:46:53 +13:00
parent e3003a65db
commit 8ba3ef3b46
11 changed files with 109 additions and 4 deletions

View File

@ -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',

View File

@ -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