Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-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
Köpeczi-Bócz Gergely
kszkepzes-frontend
Commits
f8fddf01
Commit
f8fddf01
authored
7 years ago
by
Tamás Szabó
Browse files
Options
Downloads
Patches
Plain Diff
removed logout
parent
1bc4fe54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/actions/auth.js
+0
-9
0 additions, 9 deletions
src/actions/auth.js
src/components/Header.js
+2
-2
2 additions, 2 deletions
src/components/Header.js
with
2 additions
and
11 deletions
src/actions/auth.js
+
0
−
9
View file @
f8fddf01
...
@@ -64,12 +64,3 @@ export const submitRegistration = ({
...
@@ -64,12 +64,3 @@ export const submitRegistration = ({
}
}
}
}
);
);
export
const
logout
=
()
=>
(
async
(
dispatch
)
=>
{
const
response
=
await
axios
.
get
(
'
/api/v1/logout/
'
);
if
(
response
)
{
dispatch
({
type
:
LOGOUT
});
}
}
);
This diff is collapsed.
Click to expand it.
src/components/Header.js
+
2
−
2
View file @
f8fddf01
...
@@ -9,7 +9,7 @@ import {
...
@@ -9,7 +9,7 @@ import {
Image
,
Image
,
}
from
'
semantic-ui-react
'
;
}
from
'
semantic-ui-react
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
connect
}
from
'
react-redux
'
;
import
{
getUserData
,
logout
}
from
'
../actions
'
;
import
{
getUserData
}
from
'
../actions
'
;
import
KSZKlogo
from
'
./images/kszk_logo.svg
'
;
import
KSZKlogo
from
'
./images/kszk_logo.svg
'
;
const
FixedMenu
=
({
user
})
=>
(
const
FixedMenu
=
({
user
})
=>
(
...
@@ -108,4 +108,4 @@ const mapStateToProps = ({ user }) => ({
...
@@ -108,4 +108,4 @@ const mapStateToProps = ({ user }) => ({
user
,
user
,
});
});
export
default
connect
(
mapStateToProps
,
{
getUserData
,
logout
})(
Header
);
export
default
connect
(
mapStateToProps
,
{
getUserData
})(
Header
);
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