Merge pull request #7471 from overleaf/jpa-read-var

[web] read TPDS_DROPBOX_APP_NAME into the settings

GitOrigin-RevId: 314dd2a750a55d204b03976fb99525d5c90abd4c
This commit is contained in:
Jakob Ackermann 2022-04-07 16:26:58 +01:00 committed by Copybot
parent 8b8b15bffb
commit 58e9194be4

View file

@ -362,7 +362,8 @@ module.exports = function (webRouter, privateApiRouter, publicApiRouter) {
res.locals.ExposedSettings = {
isOverleaf: Settings.overleaf != null,
appName: Settings.appName,
dropboxAppName: Settings.apis.thirdPartyDataStore?.dropboxAppName || '',
dropboxAppName:
Settings.apis.thirdPartyDataStore?.dropboxAppName || 'Overleaf',
hasSamlBeta: req.session.samlBeta,
hasSamlFeature: Features.hasFeature('saml'),
samlInitPath: _.get(Settings, ['saml', 'ukamf', 'initPath']),