mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
allow owners to edit chart title (#17047)
This commit is contained in:
parent
48fd3c185c
commit
3641093a44
@ -224,7 +224,13 @@ export class ExploreChartHeader extends React.PureComponent {
|
|||||||
<div className="title-panel">
|
<div className="title-panel">
|
||||||
<EditableTitle
|
<EditableTitle
|
||||||
title={this.getSliceName()}
|
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}
|
onSaveTitle={this.props.actions.updateChartTitle}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user