Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
Applications
Systems Frontend
Commits
b378a661
Commit
b378a661
authored
Mar 25, 2020
by
anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user management
Closes
#340
parent
325456f0
Pipeline
#50891
passed with stage
in 2 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
src/pages/shared/users/manage.vue
src/pages/shared/users/manage.vue
+10
-13
No files found.
src/pages/shared/users/manage.vue
View file @
b378a661
...
...
@@ -75,19 +75,16 @@
}
},
submit
:
{
handler
()
{
return
context
.
$store
.
dispatch
(
'
profiles/patch
'
,
[
context
.
$store
.
state
.
auth
.
user
.
uuid
,
context
.
payload
]).
then
(()
=>
{
return
context
.
$store
.
dispatch
(
'
profiles/get
'
,
context
.
$store
.
state
.
auth
.
user
.
uuid
)
}).
then
(
profile
=>
{
const
user
=
context
.
$store
.
state
.
auth
.
user
user
.
profile
=
profile
context
.
$store
.
commit
(
'
auth/setUser
'
,
user
)
localStorage
.
setItem
(
'
user
'
,
JSON
.
stringify
(
user
))
}).
then
(()
=>
{
if
(
context
.
$route
.
params
.
isFirst
&&
context
.
$route
.
params
.
redirect
)
{
context
.
$router
.
push
(
context
.
$route
.
params
.
redirect
.
fullPath
)
}
})
async
handler
()
{
const
profile
=
await
context
.
$store
.
dispatch
(
'
profiles/patch
'
,
[
context
.
$store
.
state
.
auth
.
user
.
uuid
,
context
.
payload
])
if
(
profile
)
{
const
user
=
Object
.
assign
({},
context
.
$store
.
state
.
auth
.
user
)
user
.
profile
=
Object
.
assign
({},
user
.
profile
,
profile
)
context
.
$auth
.
_setUser
(
user
,
context
.
$store
)
}
if
(
context
.
$route
.
params
.
isFirst
&&
context
.
$route
.
params
.
redirect
)
{
context
.
$router
.
push
(
context
.
$route
.
params
.
redirect
.
fullPath
)
}
},
label
:
'
buttons.save
'
,
message
:
'
messages.update_success
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment