Skip to content
Snippets Groups Projects
Commit b9f2daa8 authored by feld's avatar feld
Browse files

Wipe settingsTabs from local storage on boot of the app

parent 7e0487fd
Branches
No related tags found
1 merge request!339Remove remnants of Logger from AdminFE
......@@ -28,16 +28,11 @@ import Layout from '@/views/layout/Layout'
const disabledFeatures = process.env.DISABLED_FEATURES || []
const settingsDisabled = disabledFeatures.includes('settings')
const settingsChildren = () => {
return localStorage.getItem('settingsTabs')
? JSON.parse(localStorage.getItem('settingsTabs')).map(({ label, path }) => {
return {
path,
component: () => import(`@/views/settings`),
name: label,
meta: { title: label }
}
})
: []
// We used to read the settings from local storage, but it meant removed settings would persist.
// Instead we clear the cache from the last time the app was accessed and let it fetch
// the latest from the Pleroma backend
localStorage.removeItem('settingsTabs')
return []
}
const settings = {
path: '/settings',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment