mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2314 from overleaf/cmg-remove-rt-toggle
Remove Rich Text test control in left menu GitOrigin-RevId: 9f6c554b955b75d28dd0f376d7fa5e3d6b3dc8a9
This commit is contained in:
parent
c61d882a45
commit
5112bd3696
5 changed files with 3 additions and 44 deletions
|
@ -811,8 +811,6 @@ const ProjectController = {
|
|||
project.overleaf &&
|
||||
project.overleaf.history &&
|
||||
Boolean(project.overleaf.history.display),
|
||||
showTestControls:
|
||||
(req.query && req.query.tc === 'true') || user.isAdmin,
|
||||
brandVariation,
|
||||
allowedImageNames: Settings.allowedImageNames || [],
|
||||
gitBridgePublicBaseUrl: Settings.gitBridgePublicBaseUrl
|
||||
|
|
|
@ -61,16 +61,6 @@ aside#left-menu.full-size(
|
|||
h4 #{translate("services")}
|
||||
!= moduleIncludes("editorLeftMenu:editing_services", locals)
|
||||
|
||||
|
||||
if showTestControls
|
||||
h4 Test Controls
|
||||
ul.list-unstyled.nav(ng-controller="TestControlsController")
|
||||
li
|
||||
a(href="#" ng-click="richText()")
|
||||
i.fa.fa-exclamation.fa-fw
|
||||
| Rich Text
|
||||
|
||||
|
||||
h4(ng-show="!anonymous") #{translate("settings")}
|
||||
form.settings(ng-controller="SettingsController", ng-show="!anonymous")
|
||||
.containter-fluid
|
||||
|
|
|
@ -38,7 +38,6 @@ define([
|
|||
'ide/chat/index',
|
||||
'ide/clone/index',
|
||||
'ide/hotkeys/index',
|
||||
'ide/test-controls/index',
|
||||
'ide/wordcount/index',
|
||||
'ide/directives/layout',
|
||||
'ide/directives/validFile',
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
/* eslint-disable
|
||||
max-len,
|
||||
no-return-assign,
|
||||
no-undef,
|
||||
*/
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
/*
|
||||
* decaffeinate suggestions:
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
define(['base', 'ace/ace'], App =>
|
||||
App.controller(
|
||||
'TestControlsController',
|
||||
$scope =>
|
||||
($scope.richText = function() {
|
||||
const current = window.location.toString()
|
||||
const target = `${current}${window.location.search ? '&' : '?'}rt=true`
|
||||
return (window.location.href = target)
|
||||
})
|
||||
))
|
|
@ -1,6 +0,0 @@
|
|||
/* eslint-disable
|
||||
no-undef,
|
||||
*/
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Fix any style issues and re-enable lint.
|
||||
define(['ide/test-controls/controllers/TestControlsController'], function() {})
|
Loading…
Reference in a new issue