Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
exosphere
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Exosphere
exosphere
Commits
5b066f6f
Commit
5b066f6f
authored
3 years ago
by
Jaladh Singhal
Browse files
Options
Downloads
Patches
Plain Diff
Make Logout a local msg
parent
21f4ac2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Page/Home.elm
+11
-6
11 additions, 6 deletions
src/Page/Home.elm
with
11 additions
and
6 deletions
src/Page/Home.elm
+
11
−
6
View file @
5b066f6f
...
...
@@ -15,10 +15,9 @@ import Style.Types
import
Style
.
Widgets
.
Card
exposing
(
exoCardFixedSize
)
import
Style
.
Widgets
.
Icon
as
Icon
import
Types
.
HelperTypes
as
HelperTypes
import
Types
.
OuterMsg
exposing
(
OuterMsg
(
..
))
import
Types
.
Project
exposing
(
Project
)
import
Types
.
SharedModel
exposing
(
SharedModel
)
import
Types
.
SharedMsg
as
S
M
import
Types
.
SharedMsg
as
S
haredMsg
import
View
.
Helpers
as
VH
import
View
.
Types
import
Widget
...
...
@@ -30,6 +29,7 @@ type alias Model =
type
Msg
=
NoOp
|
Logout
init
:
Model
...
...
@@ -37,9 +37,14 @@ init =
()
update
:
Msg
->
Model
->
(
Model
,
Cmd
Msg
,
SM
.
SharedMsg
)
update
_
model
=
(
model
,
Cmd
.
none
,
SM
.
NoOp
)
update
:
Msg
->
Model
->
(
Model
,
Cmd
Msg
,
SharedMsg
.
SharedMsg
)
update
msg
model
=
case
msg
of
NoOp
->
(
model
,
Cmd
.
none
,
SharedMsg
.
NoOp
)
Logout
->
(
model
,
Cmd
.
none
,
SharedMsg
.
Logout
)
...
...
@@ -97,7 +102,7 @@ viewWithProjects context sharedModel uniqueKeystoneHostnames =
]
,
text
=
removeAllText
,
onPress
=
Just
<|
SharedMsg
SM
.
Logout
Just
Logout
}
)
]
...
...
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