fix: dashboard edit button (again) (#11029)

This commit is contained in:
Grace Guo 2020-09-23 15:42:06 -07:00 committed by GitHub
parent dc76a2688e
commit 8e9b0b3f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -437,13 +437,12 @@ class Header extends React.PureComponent {
/>
)}
{!editMode && (
{!editMode && userCanEdit && (
<span
role="button"
tabIndex={0}
className="action-button"
onClick={this.toggleEditMode}
disabled={!userCanEdit}
>
<Icon name="pencil" />
</span>