Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
community
pount
pount-front
Commits
a6c1e21d
Commit
a6c1e21d
authored
Sep 10, 2021
by
Jean Rabreau
Browse files
🐛
internals profile update patched
parent
22b427fb
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/components/menu/ProfileMenu.vue
View file @
a6c1e21d
...
...
@@ -119,9 +119,7 @@ export default {
},
methods
:
{
onLogOut
()
{
this
.
$store
.
dispatch
(
'
contrib/logOut
'
).
then
(()
=>
{
this
.
$router
.
push
({
name
:
'
logout
'
})
})
this
.
$store
.
dispatch
(
'
contrib/logOut
'
)
},
},
}
...
...
src/components/profile/ProfileFormInternalRefresh.vue
View file @
a6c1e21d
...
...
@@ -45,6 +45,7 @@
<
script
>
import
{
mapActions
}
from
'
vuex
'
import
authority
from
'
@/assets/authAxios
'
export
default
{
name
:
"
ProfileFormInternalRefresh
"
,
...
...
@@ -54,9 +55,17 @@ export default {
}
},
methods
:
{
...
mapActions
(
'
contrib
'
,
[
'
refreshProfile
'
]),
...
mapActions
(
'
contrib
'
,
[
'
logOut
'
]),
...
mapActions
(
'
dialog
'
,
[
'
displayError
'
]),
onRefresh
()
{
this
.
refreshProfile
()
authority
.
patch
(
'
/users/profile/ldap-refresh/
'
)
.
then
(()
=>
{
this
.
logOut
(
this
.
$route
.
fullPath
)})
.
catch
(
error
=>
{
this
.
displayError
({
message
:
this
.
$t
(
'
profile.update.wanted.failed
'
),
error
:
error
})
})
},
}
}
...
...
src/i18n/en_US.js
View file @
a6c1e21d
...
...
@@ -535,6 +535,8 @@ export const en_US = {
failure
:
"
Your profile has not been updated
"
,
wanted
:
{
button
:
"
Update my profile
"
,
deco
:
"
You will be disconnected
"
,
failed
:
"
Your request aborted
"
,
next
:
"
My profile will be updated on next connexion
"
}
},
...
...
src/i18n/fr_FR.js
View file @
a6c1e21d
...
...
@@ -550,6 +550,7 @@ export const fr_FR = {
wanted
:
{
button
:
"
Mettre à jour
"
,
deco
:
"
Vous allez être déconnecté
"
,
failed
:
"
Votre demande n'a pas pu aboutir
"
,
next
:
"
Vos informations seront mises à jour à la prochaine connexion, cette opération nécessite de se reconnecter.
"
}
},
...
...
src/store/contrib.js
View file @
a6c1e21d
...
...
@@ -241,21 +241,11 @@ const Contrib = {
dispatch
(
'
dialog/displayError
'
,
{
message
,
error
},
{
root
:
true
})
})
},
logOut
({
commit
}){
logOut
({
commit
}
,
path
=
''
){
authority
.
logOut
()
commit
(
'
LOGIN
'
,
false
)
},
refreshProfile
({
dispatch
})
{
dispatch
(
'
updateProfile
'
,
{
settings
:
{
...
this
.
settings
,
refreshInfo
:
true
}
}).
then
(
succeed
=>
{
if
(
succeed
)
{
dispatch
(
'
logOut
'
).
then
(()
=>
document
.
location
.
reload
())
}
})
const
logoutUrl
=
`
${
process
.
env
.
VUE_APP_AXIOS_BASE_URL
}
logout?redirect=
${
appOrigin
}${
path
}
`
window
.
location
=
logoutUrl
},
/**
*
...
...
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