Skip to content

Commit 599f835

Browse files
authored
Merge pull request #724 from plotly/hide-undo-redo
add show_undo_redo config option, default false
2 parents d67bce4 + a11bd7f commit 599f835

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run:
3131
name: Install dependencies (dash)
3232
command: |
33-
git clone [email protected]:plotly/dash-renderer.git
33+
git clone -b hide-undo-redo [email protected]:plotly/dash-renderer.git
3434
git clone [email protected]:plotly/dash-core-components.git
3535
git clone [email protected]:plotly/dash-html-components.git
3636
git clone [email protected]:plotly/dash-table.git

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [UNRELEASED]
2+
### Changed
3+
- Undo/redo toolbar is removed by default, you can enable it with `app=Dash(show_undo_redo=true)`. The CSS hack `._dash-undo-redo:{display:none;}` is no longer needed [#724](https://github.com/plotly/dash/pull/724)
4+
15
## [0.43.0] - 2019-04-25
26
### Changed
37
- Bumped dash-core-components version from 0.47.0 to [0.48.0](https://github.com/plotly/dash-core-components/blob/master/CHANGELOG.md#0480---2019-05-15)

dash/dash.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def __init__(
106106
external_stylesheets=None,
107107
suppress_callback_exceptions=None,
108108
components_cache_max_age=None,
109+
show_undo_redo=False,
109110
plugins=None,
110111
**kwargs):
111112

@@ -149,7 +150,8 @@ def __init__(
149150
'components_cache_max_age': int(get_combined_config(
150151
'components_cache_max_age',
151152
components_cache_max_age,
152-
2678400))
153+
2678400)),
154+
'show_undo_redo': show_undo_redo
153155
})
154156

155157
assets_blueprint_name = '{}{}'.format(
@@ -342,6 +344,7 @@ def _config(self):
342344
'requests_pathname_prefix': self.config.requests_pathname_prefix,
343345
'ui': self._dev_tools.ui,
344346
'props_check': self._dev_tools.props_check,
347+
'show_undo_redo': self.config.show_undo_redo
345348
}
346349
if self._dev_tools.hot_reload:
347350
config['hot_reload'] = {

0 commit comments

Comments
 (0)