mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Website: Update start CTA for logged-out users (#27228)
Closes: https://github.com/fleetdm/confidential/issues/9975 Changes: - Updated the start CTA to be collapsed by default for users who aren't signed in.
This commit is contained in:
parent
a71ea00159
commit
e0b0219a89
1 changed files with 1 additions and 4 deletions
5
website/api/hooks/custom/index.js
vendored
5
website/api/hooks/custom/index.js
vendored
|
|
@ -228,10 +228,7 @@ will be disabled and/or hidden in the UI.
|
|||
// Not logged in? Set local variables for the start flow CTA.
|
||||
if (!req.session.userId) {
|
||||
res.locals.showStartCta = true;
|
||||
res.locals.collapseStartCta = false;
|
||||
if(req.session.expandCtaAt && req.session.expandCtaAt > Date.now()) {
|
||||
res.locals.collapseStartCta = true;
|
||||
}
|
||||
res.locals.collapseStartCta = true;
|
||||
return next();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue