From 8b6112814440d7fd7e903df85e22a5c010000063 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Mon, 20 May 2019 18:06:50 -0400 Subject: [PATCH 1/3] add show_undo_redo config option, default false --- dash/dash.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dash/dash.py b/dash/dash.py index cf6ee38e92..60830d94a1 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -106,6 +106,7 @@ def __init__( external_stylesheets=None, suppress_callback_exceptions=None, components_cache_max_age=None, + show_undo_redo=False, plugins=None, **kwargs): @@ -149,7 +150,8 @@ def __init__( 'components_cache_max_age': int(get_combined_config( 'components_cache_max_age', components_cache_max_age, - 2678400)) + 2678400)), + 'show_undo_redo': show_undo_redo }) assets_blueprint_name = '{}{}'.format( @@ -342,6 +344,7 @@ def _config(self): 'requests_pathname_prefix': self.config.requests_pathname_prefix, 'ui': self._dev_tools.ui, 'props_check': self._dev_tools.props_check, + 'show_undo_redo': self.config.show_undo_redo } if self._dev_tools.hot_reload: config['hot_reload'] = { From 03289f6f03840c9366ad088d4c6a153e7be843cf Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Mon, 20 May 2019 20:08:43 -0400 Subject: [PATCH 2/3] use hide-undo-redo branch of dash-renderer --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ecd8cd6fb7..1fef45079d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,7 +30,7 @@ jobs: - run: name: Install dependencies (dash) command: | - git clone git@github.com:plotly/dash-renderer.git + git clone -b hide-undo-redo git@github.com:plotly/dash-renderer.git git clone git@github.com:plotly/dash-core-components.git git clone git@github.com:plotly/dash-html-components.git git clone git@github.com:plotly/dash-table.git From a11bd7f067fee6bafc22268c89e4fbcaf81eda15 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Tue, 21 May 2019 09:58:37 -0400 Subject: [PATCH 3/3] changelog for hide-undo-redo --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdbb1d24eb..4587a023ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [UNRELEASED] +### Changed +- 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) + ## [0.43.0] - 2019-04-25 ### Changed - 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)