Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
admin-fe
Commits
b9f2daa8
Commit
b9f2daa8
authored
10 months ago
by
feld
Browse files
Options
Downloads
Patches
Plain Diff
Wipe settingsTabs from local storage on boot of the app
parent
7e0487fd
Branches
Branches containing commit
No related tags found
1 merge request
!339
Remove remnants of Logger from AdminFE
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/router/index.js
+5
-10
5 additions, 10 deletions
src/router/index.js
with
5 additions
and
10 deletions
src/router/index.js
+
5
−
10
View file @
b9f2daa8
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment