mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Avoid adding custom toggler attributes when the feature flag is false.
This commit is contained in:
parent
4232732646
commit
a957593b62
3 changed files with 9 additions and 8 deletions
|
@ -67,9 +67,9 @@ block content
|
|||
ng-hide="state.loading",
|
||||
resize-on="layout:chat:resize,history:toggle",
|
||||
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") : ""
|
||||
custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_filetree") : ""
|
||||
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
|
||||
)
|
||||
.ui-layout-west
|
||||
include ./editor/file-tree
|
||||
|
|
|
@ -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") : ""
|
||||
custom-toggler-msg-when-closed=hasFeature('custom-togglers') ? translate("tooltip_show_pdf") : ""
|
||||
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
|
||||
)
|
||||
.ui-layout-center(
|
||||
ng-controller="ReviewPanelController",
|
||||
|
@ -101,6 +101,7 @@ div.full-size(
|
|||
ng-click="syncToCode()"
|
||||
)
|
||||
i.synctex-control-icon
|
||||
|
||||
div.full-size(
|
||||
ng-if="ui.pdfLayout == 'flat'"
|
||||
ng-show="ui.view == 'pdf'"
|
||||
|
|
|
@ -8,10 +8,10 @@ define [
|
|||
pre: (scope, element, attrs) ->
|
||||
name = attrs.layout
|
||||
|
||||
customTogglerPane = scope.$eval(attrs.customTogglerPane or "false")
|
||||
customTogglerPane = attrs.customTogglerPane
|
||||
customTogglerMsgWhenOpen = attrs.customTogglerMsgWhenOpen
|
||||
customTogglerMsgWhenClosed = attrs.customTogglerMsgWhenClosed
|
||||
hasCustomToggler = customTogglerPane != false and customTogglerMsgWhenOpen != "" and customTogglerMsgWhenClosed != ""
|
||||
hasCustomToggler = customTogglerPane? and customTogglerMsgWhenOpen? and customTogglerMsgWhenClosed?
|
||||
|
||||
if attrs.spacingOpen?
|
||||
spacingOpen = parseInt(attrs.spacingOpen, 10)
|
||||
|
|
Loading…
Reference in a new issue