table overview for jobs

This commit is contained in:
orangecoding
2026-05-07 15:59:55 +02:00
parent 0e29c9b9c6
commit 703c602527
9 changed files with 438 additions and 127 deletions

View File

@@ -335,6 +335,20 @@ export const useFredyState = create(
throw Exception;
}
},
async setJobsViewMode(jobs_view_mode) {
try {
await xhrPost('/api/user/settings/jobs-view-mode', { jobs_view_mode });
set((state) => ({
userSettings: {
...state.userSettings,
settings: { ...state.userSettings.settings, jobs_view_mode },
},
}));
} catch (Exception) {
console.error('Error while trying to update jobs view mode setting. Error:', Exception);
throw Exception;
}
},
},
};