Skip to content

fix(alerts): Make clear that superuser may edit comments #18455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Apr 24, 2020

Fixes the backend endpoint to allow superuser mutation

image

Adds this tooltip too.

@evanpurkhiser evanpurkhiser requested review from a team and wedamija April 24, 2020 03:31
}

const NoteHeader = ({authorName, user, onEdit, onDelete}: Props) => (
<div>
<ActivityAuthor>{authorName}</ActivityAuthor>
{canEdit(user) && (
<EditorTools>
<Edit onClick={onEdit}>{t('Edit')}</Edit>
<Tooltip
title={t('You can edit this comment due to your superuser status')}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should delete have a similar tooltip?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah may as well :)

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/fixalerts-make-clear-that-superuser-may-edit-comments branch from 5541f9f to 118b7c3 Compare April 24, 2020 19:33
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@evanpurkhiser evanpurkhiser merged commit 8761f03 into master Apr 24, 2020
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/fixalerts-make-clear-that-superuser-may-edit-comments branch April 24, 2020 20:29
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants