Skip to content

Commit

Permalink
allow owners to edit chart title
Browse files Browse the repository at this point in the history
  • Loading branch information
belgren committed Oct 9, 2021
1 parent 7c1c89c commit 1739814
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 1739814

Please sign in to comment.