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:
Eric 2025-03-18 17:39:41 -05:00 committed by GitHub
parent a71ea00159
commit e0b0219a89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}