Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
d3685610
Commit
d3685610
authored
May 12, 2021
by
Ben Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logic for when to show intro to users
parent
8827fca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/views/splash/splash.jsx
src/views/splash/splash.jsx
+8
-1
No files found.
src/views/splash/splash.jsx
View file @
d3685610
...
@@ -165,6 +165,13 @@ class Splash extends React.Component {
...
@@ -165,6 +165,13 @@ class Splash extends React.Component {
shouldShowHOCMiddleBanner
()
{
shouldShowHOCMiddleBanner
()
{
return
false
;
// we did not use this middle banner in last HoC
return
false
;
// we did not use this middle banner in last HoC
}
}
shouldShowIntro
()
{
return
(
this
.
props
.
sessionStatus
===
sessionActions
.
Status
.
FETCHED
&&
// done fetching session
Object
.
keys
(
this
.
props
.
user
).
length
===
0
&&
// no user session found
this
.
shouldShowHOCTopBanner
()
!==
true
);
}
shouldShowDonateBanner
()
{
shouldShowDonateBanner
()
{
return
(
return
(
this
.
state
.
dismissedDonateBanner
===
false
&&
this
.
state
.
dismissedDonateBanner
===
false
&&
...
@@ -180,7 +187,7 @@ class Splash extends React.Component {
...
@@ -180,7 +187,7 @@ class Splash extends React.Component {
const
showDonateBanner
=
this
.
shouldShowDonateBanner
()
||
false
;
const
showDonateBanner
=
this
.
shouldShowDonateBanner
()
||
false
;
const
showHOCTopBanner
=
this
.
shouldShowHOCTopBanner
()
||
false
;
const
showHOCTopBanner
=
this
.
shouldShowHOCTopBanner
()
||
false
;
const
showHOCMiddleBanner
=
this
.
shouldShowHOCMiddleBanner
()
||
false
;
const
showHOCMiddleBanner
=
this
.
shouldShowHOCMiddleBanner
()
||
false
;
const
showIntro
=
showHOCTopBanner
!==
tru
e
;
const
showIntro
=
this
.
shouldShowIntro
()
||
fals
e
;
const
showWelcome
=
this
.
shouldShowWelcome
();
const
showWelcome
=
this
.
shouldShowWelcome
();
const
homepageRefreshStatus
=
this
.
getHomepageRefreshStatus
();
const
homepageRefreshStatus
=
this
.
getHomepageRefreshStatus
();
...
...
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