Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Accounts Web
Commits
bcd4546f
Commit
bcd4546f
authored
Apr 06, 2017
by
2breakegg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log out
parent
ad3f621b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
143 deletions
+141
-143
.idea/workspace.xml
.idea/workspace.xml
+137
-137
src/models/auth.js
src/models/auth.js
+2
-3
src/routes/Activate.js
src/routes/Activate.js
+0
-1
src/routes/Index.js
src/routes/Index.js
+2
-2
No files found.
.idea/workspace.xml
View file @
bcd4546f
This diff is collapsed.
Click to expand it.
src/models/auth.js
View file @
bcd4546f
...
...
@@ -21,10 +21,9 @@ export default {
register
:
{},
},
reducers
:
{
signOut
(
state
){
console
.
log
(
'
sign out
'
);
signOut
(
state
)
{
localStorage
.
removeItem
(
'
token
'
);
loca
lStorage
.
removeItem
(
'
user
'
)
;
loca
tion
=
'
/
'
;
return
state
;
},
change
(
state
,
action
)
{
...
...
src/routes/Activate.js
View file @
bcd4546f
...
...
@@ -29,5 +29,4 @@ function mapStateToProps(state) {
loading
,
};
}
export
default
connect
(
mapStateToProps
)(
Active
);
src/routes/Index.js
View file @
bcd4546f
...
...
@@ -151,11 +151,11 @@ function Index({ children, messages, dispatch }) {
defaultSelectedKeys
=
{[
'
1
'
]}
style
=
{{
lineHeight
:
'
64px
'
,
position
:
'
absolute
'
,
right
:
'
50px
'
}}
>
{
localStorage
.
getItem
(
'
user
'
)
?
(
<
Menu
.
Item
key
=
"
1
"
>
{
localStorage
.
getItem
(
'
token
'
)
?
(
<
Menu
.
Item
key
=
"
1
"
>
<
div
onClick
=
{()
=>
{
dispatch
({
type
:
'
auth/signOut
'
})
}}
>
<
Format
id
=
"
sign-out
"
/>
<
/div
>
<
/Menu.Item>
)
:
(
<div></
div
>
)
<
/Menu.Item>
)
:
(
''
)
}
<
/Menu
>
<
/Header
>
...
...
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