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:
Zachary Svoboda 2020-03-25 16:24:34 +00:00
Родитель 99ba796141
Коммит 14bde58748
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

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

Просмотреть файл

@ -31,6 +31,7 @@ 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