Преглед на файлове

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

Publish modal accessible from query string
Hugh O'Brien преди 8 години
родител
ревизия
57f07fb5fe
променени са 2 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 0
      services/web/app/coffee/Features/Project/ProjectController.coffee
  2. 0 2
      services/web/app/coffee/infrastructure/Features.coffee

+ 1 - 0
services/web/app/coffee/Features/Project/ProjectController.coffee

@@ -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 = [])->

+ 0 - 2
services/web/app/coffee/infrastructure/Features.coffee

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