Backed out changeset 1e70c2d4173d (bug 1561362) for eslint failure on JsonToolbar.js. CLOSED TREE

This commit is contained in:
Csoregi Natalia 2020-03-24 10:21:30 +02:00
parent 48f369daff
commit 9e5e4b59da
2 changed files with 5 additions and 6 deletions

View File

@ -73,12 +73,12 @@ define(function(require, exports, module) {
{ className: "btn collapse", onClick: this.onCollapse },
JSONView.Locale["jsonViewer.CollapseAll"]
),
ToolbarButton(
{ className: "btn expand", onClick: this.onExpand },
this.props.dataSize > EXPAND_THRESHOLD ?
JSONView.Locale["jsonViewer.ExpandAllSlow"] :
this.props.dataSize > EXPAND_THRESHOLD
? undefined
: ToolbarButton(
{ className: "btn expand", onClick: this.onExpand },
JSONView.Locale["jsonViewer.ExpandAll"]
),
),
div({ className: "devtools-separator" }),
SearchBox({
actions: this.props.actions,

View File

@ -31,7 +31,6 @@ jsonViewer.Copy=Copy
# LOCALIZATION NOTE (jsonViewer.ExpandAll): Label for expanding all nodes
jsonViewer.ExpandAll=Expand All
jsonViewer.ExpandAllSlow=Expand All (slow)
# LOCALIZATION NOTE (jsonViewer.CollapseAll): Label for collapsing all nodes
jsonViewer.CollapseAll=Collapse All