mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Enable panel toggle buttons in all environments (#14406)
GitOrigin-RevId: 3af322c3c679d5bae467a70a4415b88a040f930d
This commit is contained in:
parent
49a1bdd2b7
commit
8ec33fb9bf
4 changed files with 6 additions and 12 deletions
|
@ -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':
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue