This commit is contained in:
Alex Holliday committed 2026-02-05 20:23:04 +00:00
1 parent 3b25b37c22
commit a148f56b22
12 files changed
+291 -5

No files matched your search

+6 -2
View File
@@ -19,6 +19,9 @@ const initialState = {
infrastructure: {
rowsPerPage: 5,
},
logs: {
rowsPerPage: 15,
},
sidebar: {
collapsed: false,
},
@@ -41,9 +44,10 @@ const uiSlice = createSlice({
},
setRowsPerPage: (state, action) => {
const { table, value } = action.payload;
if (state[table]) {
state[table].rowsPerPage = value;
if (!state[table]) {
state[table] = {};
}
state[table].rowsPerPage = value;
},
toggleSidebar: (state) => {
state.sidebar.collapsed = !state.sidebar.collapsed;