Skip to content

Commit

Permalink
allow owners to edit chart title (#17047)
Browse files Browse the repository at this point in the history
  • Loading branch information
belgren authored Oct 26, 2021
1 parent 48fd3c1 commit 3641093
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,13 @@ export class ExploreChartHeader extends React.PureComponent {
<div className="title-panel">
<EditableTitle
title={this.getSliceName()}
canEdit={!this.props.slice || this.props.can_overwrite}
canEdit={
!this.props.slice ||
this.props.can_overwrite ||
(this.props.slice?.owners || []).includes(
this.props?.user?.userId,
)
}
onSaveTitle={this.props.actions.updateChartTitle}
/>

Expand Down

0 comments on commit 3641093

Please sign in to comment.