Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Commits
6d9ed78e
Commit
6d9ed78e
authored
11 months ago
by
Anders Høvik
Browse files
Options
Downloads
Patches
Plain Diff
Added changed username to menu
parent
f8f1ff90
No related branches found
Branches containing commit
No related tags found
1 merge request
!31
Feature/update user settings layout
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/UpdateUserComponents/UpdateUserLayout.vue
+7
-1
7 additions, 1 deletion
src/components/UpdateUserComponents/UpdateUserLayout.vue
with
7 additions
and
1 deletion
src/components/UpdateUserComponents/UpdateUserLayout.vue
+
7
−
1
View file @
6d9ed78e
...
...
@@ -2,6 +2,7 @@
import
BaseInput
from
"
@/components/InputFields/BaseInput.vue
"
;
import
{
onMounted
,
ref
}
from
"
vue
"
;
import
{
AuthenticationService
,
LeaderboardService
,
UserControllerService
,
type
UserUpdateDTO
}
from
"
@/api
"
;
import
{
useUserInfoStore
}
from
"
@/stores/UserStore
"
;
...
...
@@ -15,7 +16,6 @@ const confirmPasswordRef = ref('')
const
formRef
=
ref
()
let
samePasswords
=
ref
(
true
)
async
function
setupForm
()
{
try
{
let
response
=
await
UserControllerService
.
getUser
();
...
...
@@ -78,6 +78,12 @@ const handleSubmit = async () => {
if
(
samePasswords
.
value
){
try
{
UserControllerService
.
update
({
requestBody
:
updateUserPayload
})
useUserInfoStore
().
setUserInfo
({
email
:
emailRef
.
value
,
firstname
:
firstNameRef
.
value
,
lastname
:
surnameRef
.
value
,
password
:
passwordRef
.
value
})
}
catch
(
err
){
cosole
.
error
(
err
)
...
...
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