Merge pull request #12448 from overleaf/jpa-compile-and-download-pdf

[web] add button to project dashboard for compiling and downloading PDF

GitOrigin-RevId: c243b4a30e4720116d82d9c25bdc8be8825d6d74
This commit is contained in:
Jakob Ackermann
2023-11-29 09:03:59 +00:00
committed by Copybot
parent 7a87bf4288
commit 4636f40f03
12 changed files with 396 additions and 6 deletions
@@ -335,6 +335,19 @@ async function projectListPage(req, res, next) {
'failed to get "welcome-page-redesign" split test assignment'
)
}
try {
// The assignment will be picked up via 'ol-splitTestVariants' in react.
await SplitTestHandler.promises.getAssignment(
req,
res,
'download-pdf-dashboard'
)
} catch (err) {
logger.error(
{ err },
'failed to get "download-pdf-dashboard" split test assignment'
)
}
const hasPaidAffiliation = userAffiliations.some(
affiliation => affiliation.licence && affiliation.licence !== 'free'