Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Raphaël PEIM
projet-cdaw
Commits
a0573ab2
Commit
a0573ab2
authored
Dec 01, 2020
by
raphael.peim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Navbar.vue
parent
5e412f5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Navbar.vue
frontend/src/components/Navbar.vue
+4
-1
Index.vue
frontend/src/views/Index.vue
+1
-0
No files found.
frontend/src/components/Navbar.vue
View file @
a0573ab2
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<b-dropdown-item><router-link
to=
""
>
Classement
</router-link></b-dropdown-item>
<b-dropdown-item><router-link
to=
""
>
Classement
</router-link></b-dropdown-item>
</b-nav-item-dropdown>
</b-nav-item-dropdown>
<b-nav-item-dropdown
text=
"Utilisateur
"
right
>
<b-nav-item-dropdown
:text=
"login
"
right
>
<b-dropdown-item><router-link
to=
"/profile"
>
Profil
</router-link></b-dropdown-item>
<b-dropdown-item><router-link
to=
"/profile"
>
Profil
</router-link></b-dropdown-item>
<b-dropdown-item
@
click=
"onClick"
><router-link
to=
""
>
Déconnexion
</router-link></b-dropdown-item>
<b-dropdown-item
@
click=
"onClick"
><router-link
to=
""
>
Déconnexion
</router-link></b-dropdown-item>
</b-nav-item-dropdown>
</b-nav-item-dropdown>
...
@@ -37,6 +37,9 @@
...
@@ -37,6 +37,9 @@
export
default
{
export
default
{
name
:
'Navbar'
,
name
:
'Navbar'
,
components
:
{},
components
:
{},
data
()
{
return
{
login
:
localStorage
.
login
}
},
methods
:
{
methods
:
{
onClick
()
{
onClick
()
{
if
(
confirm
(
"Etes-vous sûr de vouloir vous déconnecter ?"
))
{
if
(
confirm
(
"Etes-vous sûr de vouloir vous déconnecter ?"
))
{
...
...
frontend/src/views/Index.vue
View file @
a0573ab2
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
if
(
areEqual
)
{
if
(
areEqual
)
{
// Enregistrement du token et redirection
// Enregistrement du token et redirection
this
.
getToken
(
row
.
login
,
row
.
password
).
then
(
token
=>
{
this
.
getToken
(
row
.
login
,
row
.
password
).
then
(
token
=>
{
localStorage
.
setItem
(
'login'
,
row
.
login
)
localStorage
.
setItem
(
'token'
,
token
)
localStorage
.
setItem
(
'token'
,
token
)
window
.
location
.
href
=
"/#/home"
window
.
location
.
href
=
"/#/home"
});
});
...
...
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