feat: migrate old list settings
This commit is contained in:
parent
0e6c219800
commit
ac0b4dcf36
|
@ -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.')) {
|
||||
|
|
Reference in New Issue
Block a user