Skip to content

Commit

Permalink
pexdax refactor (apache#16333)
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Oct 28, 2021
1 parent 6572492 commit b8ef6e0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions superset-frontend/src/explore/components/ExploreChartHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,24 @@ export class ExploreChartHeader extends React.PureComponent {
};
this.openPropertiesModal = this.openPropertiesModal.bind(this);
this.closePropertiesModal = this.closePropertiesModal.bind(this);
<<<<<<< HEAD
=======
this.showReportModal = this.showReportModal.bind(this);
this.hideReportModal = this.hideReportModal.bind(this);
}

componentDidMount() {
if (this.canAddReports()) {
const { user, chart } = this.props;
// this is in the case that there is an anonymous user.
this.props.fetchUISpecificReport(
user.userId,
'chart_id',
'charts',
chart.id,
);
}
>>>>>>> pexdax refactor (#16333)
}

getSliceName() {
Expand Down Expand Up @@ -214,9 +232,25 @@ export class ExploreChartHeader extends React.PureComponent {
status={CHART_STATUS_MAP[chartStatus]}
/>
<HeaderReportActionsDropdown
<<<<<<< HEAD
chart={this.props.chart}
toggleActive={this.props.toggleActive}
deleteActiveReport={this.props.deleteActiveReport}
=======
showReportModal={this.showReportModal}
toggleActive={this.props.toggleActive}
deleteActiveReport={this.props.deleteActiveReport}
/>
<ReportModal
show={this.state.showingReportModal}
onHide={this.hideReportModal}
props={{
userId: this.props.user.userId,
userEmail: this.props.user.email,
chart: this.props.chart,
creationMethod: 'charts',
}}
>>>>>>> pexdax refactor (#16333)
/>
<ExploreActionButtons
actions={{
Expand Down

0 comments on commit b8ef6e0

Please sign in to comment.