mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
allow user update slice name in dashboard view (#3467)
- if current user is allowed to edit dashboard, we will allow this user to edit slice name. - show different tooltip given allowed/not-allowed to update slice name. - user will click slice name and update. - after user submit edit, if he doesn't have right to alter slice, server-side will return error message to client-side. Slice name will not be changed or saved. - will show notification after save slice name.
This commit is contained in:
committed by
Maxime Beauchemin
parent
f3146ef6f9
commit
5718d6bbaf
@@ -30,6 +30,7 @@ class Header extends React.PureComponent {
|
||||
title={dashboard.dashboard_title}
|
||||
canEdit={dashboard.dash_save_perm}
|
||||
onSaveTitle={this.handleSaveTitle}
|
||||
noPermitTooltip={'You don\'t have the rights to alter this dashboard.'}
|
||||
/>
|
||||
<span is class="favstar" class_name="Dashboard" obj_id={dashboard.id} />
|
||||
</h1>
|
||||
|
||||
Reference in New Issue
Block a user