make publish modal accessible from query string

This commit is contained in:
hugh-obrien
2018-04-27 15:50:11 +01:00
parent 5a580b6ef9
commit 157efa6d96
2 changed files with 1 additions and 2 deletions
@@ -302,6 +302,7 @@ module.exports = ProjectController =
maxDocLength: Settings.max_doc_length
useV2History: !!project.overleaf?.history?.display
showRichText: req.query?.rt == 'true'
showPublishModal: req.query?.pm == 'true'
timer.done()
_buildProjectList: (allProjects, v1Projects = [])->
@@ -14,8 +14,6 @@ module.exports = Features =
return Settings.enableGithubSync
when 'v1-return-message'
return Settings.accountMerge? and Settings.overleaf?
when 'publish-modal'
return Settings.showPublishModal
when 'custom-togglers'
return Settings.overleaf?
else