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
b3cd4a3d
Commit
b3cd4a3d
authored
4 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Use new endpoint to get list of tabs
parent
05555ae6
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!195
Move Settings tab navigation to the main sidebar menu
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/api/settings.js
+1
-1
1 addition, 1 deletion
src/api/settings.js
src/store/modules/settings.js
+7
-31
7 additions, 31 deletions
src/store/modules/settings.js
with
8 additions
and
32 deletions
src/api/settings.js
+
1
−
1
View file @
b3cd4a3d
...
...
@@ -14,7 +14,7 @@ export async function deleteInstanceDocument(name, authHost, token) {
export
async
function
fetchDescription
(
authHost
,
token
)
{
return
await
request
({
baseURL
:
baseName
(
authHost
),
url
:
`/api/pleroma/admin/config/descriptions`
,
url
:
`/api/
v2/
pleroma/admin/config/descriptions`
,
method
:
'
get
'
,
headers
:
authHeaders
(
token
)
})
...
...
This diff is collapsed.
Click to expand it.
src/store/modules/settings.js
+
7
−
31
View file @
b3cd4a3d
...
...
@@ -101,38 +101,14 @@ const settings = {
async
FetchSettings
({
commit
,
getters
})
{
commit
(
'
SET_LOADING
'
,
true
)
try
{
const
response
=
await
fetchSettings
(
getters
.
authHost
,
getters
.
token
)
const
realResponse
=
{
...
response
,
tabs
:
[
{
label
:
'
ActivityPub
'
,
path
:
'
activity-pub
'
},
{
label
:
'
Authentication
'
,
path
:
'
authentication
'
},
{
label
:
'
Captcha
'
,
path
:
'
captcha
'
},
{
label
:
'
BBS / SSH access
'
,
path
:
'
esshd
'
},
{
label
:
'
Emoji
'
,
path
:
'
emoji
'
},
{
label
:
'
Frontend
'
,
path
:
'
frontend
'
},
{
label
:
'
Gopher
'
,
path
:
'
gopher
'
},
{
label
:
'
HTTP
'
,
path
:
'
http
'
},
{
label
:
'
Instance
'
,
path
:
'
instance
'
},
{
label
:
'
Job queue
'
,
path
:
'
job-queue
'
},
{
label
:
'
Link Formatter
'
,
path
:
'
link-formatter
'
},
{
label
:
'
Logger
'
,
path
:
'
logger
'
},
{
label
:
'
Mailer
'
,
path
:
'
mailer
'
},
{
label
:
'
Media Proxy
'
,
path
:
'
media-proxy
'
},
{
label
:
'
Metadata
'
,
path
:
'
metadata
'
},
{
label
:
'
MRF
'
,
path
:
'
mrf
'
},
{
label
:
'
Rate limiters
'
,
path
:
'
rate-limiters
'
},
{
label
:
'
Relays
'
,
path
:
'
relays
'
},
{
label
:
'
Web push encryption
'
,
path
:
'
web-push
'
},
{
label
:
'
Upload
'
,
path
:
'
upload
'
},
{
label
:
'
Other
'
,
path
:
'
other
'
}
]
}
const
description
=
await
fetchDescription
(
getters
.
authHost
,
getters
.
token
)
commit
(
'
SET_DESCRIPTION
'
,
description
.
data
)
const
searchObject
=
formSearchObject
(
description
.
data
)
const
settings
=
await
fetchSettings
(
getters
.
authHost
,
getters
.
token
)
commit
(
'
SET_SETTINGS
'
,
settings
.
data
.
configs
)
const
{
data
}
=
await
fetchDescription
(
getters
.
authHost
,
getters
.
token
)
commit
(
'
SET_DESCRIPTION
'
,
data
.
descriptions
)
const
searchObject
=
formSearchObject
(
data
.
descriptions
)
commit
(
'
SET_SEARCH
'
,
searchObject
)
commit
(
'
SET_SETTINGS
'
,
realResponse
.
data
.
configs
)
commit
(
'
SET_TABS
'
,
realResponse
.
tabs
)
commit
(
'
SET_TABS
'
,
data
.
tabs
)
}
catch
(
_e
)
{
commit
(
'
TOGGLE_TABS
'
,
true
)
commit
(
'
SET_LOADING
'
,
false
)
...
...
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