You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/10/12 00:40:11 UTC

[GitHub] timifasubaa commented on a change in pull request #6013: [Sqllab] Add offline state to sqllab

timifasubaa commented on a change in pull request #6013: [Sqllab] Add offline state to sqllab
URL: https://github.com/apache/incubator-superset/pull/6013#discussion_r224643776
 
 

 ##########
 File path: superset/assets/src/SqlLab/components/SqlEditorLeftBar.jsx
 ##########
 @@ -262,7 +267,14 @@ class SqlEditorLeftBar extends React.PureComponent {
     );
   }
 }
+
+function mapStateToProps({ sqlLab }) {
+  return {
+    offline: sqlLab.offline,
+  };
+}
+
 SqlEditorLeftBar.propTypes = propTypes;
 SqlEditorLeftBar.defaultProps = defaultProps;
 
-export default SqlEditorLeftBar;
+export default connect(mapStateToProps)(SqlEditorLeftBar);
 
 Review comment:
   it's necessary because I ensure it is online before the ajax calls

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org