mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add delete button to comment
This commit is contained in:
@@ -65,10 +65,16 @@ const Comment = ({
|
||||
onClick={() => handleToggleIsCommentUpdate(id, isPostUpdate)}
|
||||
className="commentLink"
|
||||
>
|
||||
{ isPostUpdate ? 'No post update' : 'Post update' }
|
||||
{ 'Post update: ' + (isPostUpdate ? 'yes' : 'no') }
|
||||
</a>
|
||||
<Separator />
|
||||
<a href={`/admin/comments/${id}`} data-turbolinks="false">Edit</a>
|
||||
<a href={`/admin/comments/${id}/edit`} data-turbolinks="false">Edit</a>
|
||||
<Separator />
|
||||
<a
|
||||
href={`/admin/comments/${id}`}
|
||||
data-method="delete"
|
||||
data-confirm="Are you sure?"
|
||||
data-turbolinks="false">Delete</a>
|
||||
|
||||
</React.Fragment>
|
||||
:
|
||||
|
||||
Reference in New Issue
Block a user