betodealmeida commented on a change in pull request #13288:
URL: https://github.com/apache/superset/pull/13288#discussion_r580574066
##########
File path: superset-frontend/src/SqlLab/actions/sqlLab.js
##########
@@ -663,6 +664,36 @@ export function setActiveSouthPaneTab(tabId) {
return { type: SET_ACTIVE_SOUTHPANE_TAB, tabId };
}
+export function toggleLeftBar(queryEditor) {
+ const hideLeftBar = !queryEditor.hideLeftBar;
+ return function (dispatch) {
+ const sync = isFeatureEnabled(FeatureFlag.SQLLAB_BACKEND_PERSISTENCE)
+ ? SupersetClient.put({
Review comment:
@hughhhh I'd rather leave this consistent with the rest of the code that
manages `SQLLAB_BACKEND_PERSISTENCE`, if that's ok, until we have time to
refactor the whole thing. Then we could maybe create a custom hook to manage
the whole state.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]