Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
Vlass Manager UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
Vlass Manager UI
Commits
2ab8beef
Commit
2ab8beef
authored
10 months ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
make sure setSettings returns expected info
parent
91f19b94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!25
Merge 2.4.3 UI to main
,
!24
make sure setSettings returns expected info
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/services/settings.service.ts
+6
-1
6 additions, 1 deletion
src/app/services/settings.service.ts
with
6 additions
and
1 deletion
src/app/services/settings.service.ts
+
6
−
1
View file @
2ab8beef
...
...
@@ -23,7 +23,12 @@ export class SettingsService {
public
setSettings
(
settings
:
Setting
):
Observable
<
Setting
>
{
return
this
.
http
.
post
<
Setting
>
(
this
.
configService
.
config
.
url
+
'
/services/settings
'
,
settings
,
{
observe
:
"
response
"
}).
pipe
(
map
(
response
=>
{
return
response
.
body
;
if
(
response
.
status
===
204
)
{
// this is a post which returns nothing, can't use response.body
return
settings
;
}
// if for some completely weird reason, we do have response content, send it on, it's probably an error
return
response
.
body
}));
}
...
...
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