Merge pull request #518 from sharelatex/hob-publish-modal-qs

Publish modal accessible from query string
This commit is contained in:
Hugh O'Brien 2018-05-08 09:40:41 +01:00 committed by GitHub
commit 57f07fb5fe
2 changed files with 1 additions and 2 deletions

View file

@ -311,6 +311,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 = [])->

View file

@ -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