mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add delete button to comment
This commit is contained in:
@@ -65,10 +65,16 @@ const Comment = ({
|
|||||||
onClick={() => handleToggleIsCommentUpdate(id, isPostUpdate)}
|
onClick={() => handleToggleIsCommentUpdate(id, isPostUpdate)}
|
||||||
className="commentLink"
|
className="commentLink"
|
||||||
>
|
>
|
||||||
{ isPostUpdate ? 'No post update' : 'Post update' }
|
{ 'Post update: ' + (isPostUpdate ? 'yes' : 'no') }
|
||||||
</a>
|
</a>
|
||||||
<Separator />
|
<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>
|
</React.Fragment>
|
||||||
:
|
:
|
||||||
|
|||||||
Reference in New Issue
Block a user