feat: rename lists to projects #2697

Closed
konrad wants to merge 53 commits from feature/rename-lists-to-projects into main
1 changed files with 7 additions and 0 deletions
Showing only changes of commit ac0b4dcf36 - Show all commits

View File

@ -33,6 +33,13 @@ export function saveProjectView(projectId: IProject['id'], routeName: string) {
}
export const getProjectView = (projectId: IProject['id']) => {
// Migrate old setting over
const oldListViewSettings = localStorage.getItem('listView')
if (oldListViewSettings !== null) {
localStorage.setItem('projectView', oldListViewSettings)
localStorage.removeItem('listView')
}
// Remove old stored settings
const savedProjectView = localStorage.getItem('projectView')
if (savedProjectView !== null && savedProjectView.startsWith('project.')) {