WIP Version 0.0.1

This commit is contained in:
Ahmed Bouhuolia
2020-05-08 04:36:04 +02:00
parent bd7eb0eb76
commit 71cc561bb2
151 changed files with 1742 additions and 1081 deletions

View File

@@ -92,6 +92,10 @@ const itemsReducer = createReducer(initialState, {
const { loading } = action.payload;
state.loading = !!loading;
},
[t.ITEMS_SET_CURRENT_VIEW]: (state, action) => {
state.currentViewId = action.currentViewId;
},
});
export default createTableQueryReducers('items', itemsReducer);

View File

@@ -11,4 +11,5 @@ export default {
ITEMS_TABLE_QUERIES_ADD: 'ITEMS_TABLE_QUERIES_ADD',
ITEMS_TABLE_LOADING: 'ITEMS_TABLE_LOADING',
}
ITEMS_SET_CURRENT_VIEW: 'ITEMS_SET_CURRENT_VIEW',
};