mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1561362 - Implement slow label on JSON viewer expand all button r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D67766 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
99ba796141
commit
14bde58748
@ -73,12 +73,12 @@ define(function(require, exports, module) {
|
|||||||
{ className: "btn collapse", onClick: this.onCollapse },
|
{ className: "btn collapse", onClick: this.onCollapse },
|
||||||
JSONView.Locale["jsonViewer.CollapseAll"]
|
JSONView.Locale["jsonViewer.CollapseAll"]
|
||||||
),
|
),
|
||||||
this.props.dataSize > EXPAND_THRESHOLD
|
ToolbarButton(
|
||||||
? undefined
|
{ className: "btn expand", onClick: this.onExpand },
|
||||||
: ToolbarButton(
|
this.props.dataSize > EXPAND_THRESHOLD
|
||||||
{ className: "btn expand", onClick: this.onExpand },
|
? JSONView.Locale["jsonViewer.ExpandAllSlow"]
|
||||||
JSONView.Locale["jsonViewer.ExpandAll"]
|
: JSONView.Locale["jsonViewer.ExpandAll"]
|
||||||
),
|
),
|
||||||
div({ className: "devtools-separator" }),
|
div({ className: "devtools-separator" }),
|
||||||
SearchBox({
|
SearchBox({
|
||||||
actions: this.props.actions,
|
actions: this.props.actions,
|
||||||
|
@ -31,6 +31,7 @@ jsonViewer.Copy=Copy
|
|||||||
|
|
||||||
# LOCALIZATION NOTE (jsonViewer.ExpandAll): Label for expanding all nodes
|
# LOCALIZATION NOTE (jsonViewer.ExpandAll): Label for expanding all nodes
|
||||||
jsonViewer.ExpandAll=Expand All
|
jsonViewer.ExpandAll=Expand All
|
||||||
|
jsonViewer.ExpandAllSlow=Expand All (slow)
|
||||||
|
|
||||||
# LOCALIZATION NOTE (jsonViewer.CollapseAll): Label for collapsing all nodes
|
# LOCALIZATION NOTE (jsonViewer.CollapseAll): Label for collapsing all nodes
|
||||||
jsonViewer.CollapseAll=Collapse All
|
jsonViewer.CollapseAll=Collapse All
|
||||||
|
Loading…
Reference in New Issue
Block a user