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:
Timothée Alby 2019-11-04 16:49:13 +07:00 committed by sharelatex
parent c61d882a45
commit 5112bd3696
5 changed files with 3 additions and 44 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -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() {})