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 2022/04/05 11:12:30 UTC

[GitHub] [superset] villebro commented on a diff in pull request #19529: feat(explore): Move chart header to top of the page

villebro commented on code in PR #19529:
URL: https://github.com/apache/superset/pull/19529#discussion_r842657536


##########
superset-frontend/src/explore/components/ExploreChartHeader/index.jsx:
##########
@@ -235,8 +238,18 @@ export class ExploreChartHeader extends React.PureComponent {
       this.props.chart.chartStatus,
     );
     return (
-      <StyledHeader id="slice-header" className="panel-title-large">
+      <StyledHeader id="slice-header">
         <div className="title-panel">
+          <ChartEditableTitle
+            title={this.getSliceName()}
+            canEdit={
+              !slice ||
+              this.props.can_overwrite ||

Review Comment:
   nit: while we're using the destructured `slice`, could we also destructure this like the others on line 224: `const { ..., can_overwrite: canOverwrite } = this.props`. Also maybe `this.props.actions.updateChartTitle`



-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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