diff --git a/services/web/app/src/infrastructure/Features.js b/services/web/app/src/infrastructure/Features.js index 2300a8ff8f..26841c2f6b 100644 --- a/services/web/app/src/infrastructure/Features.js +++ b/services/web/app/src/infrastructure/Features.js @@ -65,8 +65,6 @@ const Features = { return Boolean(Settings.enableGithubSync) case 'git-bridge': return Boolean(Settings.enableGitBridge) - case 'custom-togglers': - return Boolean(Settings.overleaf) case 'oauth': return Boolean(Settings.oauth) case 'templates-server-pro': diff --git a/services/web/app/views/project/editor/editor.pug b/services/web/app/views/project/editor/editor.pug index 7e510d76e7..8ca4914973 100644 --- a/services/web/app/views/project/editor/editor.pug +++ b/services/web/app/views/project/editor/editor.pug @@ -8,9 +8,9 @@ div.full-size( initial-size-east="'50%'" minimum-restore-size-east="300" allow-overflow-on="'center'" - custom-toggler-pane=hasFeature('custom-togglers') ? "east" : false - custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_pdf") : false - custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_pdf") : false + custom-toggler-pane="east" + custom-toggler-msg-when-open=translate("tooltip_hide_pdf") + custom-toggler-msg-when-closed=translate("tooltip_show_pdf") ) if (settings.showCM6SwitchAwaySurvey) cm6-switch-away-survey() diff --git a/services/web/app/views/project/editor/main.pug b/services/web/app/views/project/editor/main.pug index 5a8f79db02..de964581db 100644 --- a/services/web/app/views/project/editor/main.pug +++ b/services/web/app/views/project/editor/main.pug @@ -24,9 +24,9 @@ else ng-hide="state.loading", resize-on="layout:chat:resize,history:toggle,layout:flat-screen:toggle,south-pane-toggled", minimum-restore-size-west="130" - custom-toggler-pane=hasFeature('custom-togglers') ? "west" : false - custom-toggler-msg-when-open=hasFeature('custom-togglers') ? translate("tooltip_hide_filetree") : false - custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_filetree") : false + custom-toggler-pane="west" + custom-toggler-msg-when-open=translate("tooltip_hide_filetree") + custom-toggler-msg-when-closed=translate("tooltip_show_filetree") tabindex="0" initial-size-east="250" init-closed-east="true" diff --git a/services/web/test/unit/src/infrastructure/FeaturesTests.js b/services/web/test/unit/src/infrastructure/FeaturesTests.js index 2dee271997..857249cc83 100644 --- a/services/web/test/unit/src/infrastructure/FeaturesTests.js +++ b/services/web/test/unit/src/infrastructure/FeaturesTests.js @@ -54,7 +54,6 @@ describe('Features', function () { expect(this.Features.hasFeature('registration')).to.be.false expect(this.Features.hasFeature('affiliations')).to.be.false expect(this.Features.hasFeature('analytics')).to.be.false - expect(this.Features.hasFeature('custom-togglers')).to.be.false expect(this.Features.hasFeature('git-bridge')).to.be.false expect(this.Features.hasFeature('github-sync')).to.be.false expect(this.Features.hasFeature('homepage')).to.be.false @@ -73,7 +72,6 @@ describe('Features', function () { this.settings.apis = {} }) it('should return true', function () { - expect(this.Features.hasFeature('custom-togglers')).to.be.true expect(this.Features.hasFeature('overleaf-integration')).to.be.true expect(this.Features.hasFeature('registration')).to.be.true }) @@ -106,7 +104,6 @@ describe('Features', function () { it('should return true', function () { expect(this.Features.hasFeature('affiliations')).to.be.true expect(this.Features.hasFeature('analytics')).to.be.true - expect(this.Features.hasFeature('custom-togglers')).to.be.true expect(this.Features.hasFeature('overleaf-integration')).to.be.true expect(this.Features.hasFeature('references')).to.be.true expect(this.Features.hasFeature('registration')).to.be.true @@ -133,7 +130,6 @@ describe('Features', function () { expect(this.Features.hasFeature('link-url')).to.be.true expect(this.Features.hasFeature('affiliations')).to.be.true expect(this.Features.hasFeature('analytics')).to.be.true - expect(this.Features.hasFeature('custom-togglers')).to.be.true expect(this.Features.hasFeature('github-sync')).to.be.true expect(this.Features.hasFeature('git-bridge')).to.be.true expect(this.Features.hasFeature('homepage')).to.be.true