mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add edit and delete actions to posts and comments (#125)
This commit is contained in:
committed by
GitHub
parent
07ca2a304a
commit
bc15140512
@@ -87,10 +87,7 @@ class BoardsEditable extends React.Component<Props, State> {
|
||||
|
||||
<Separator />
|
||||
|
||||
<a
|
||||
onClick={() => handleDelete(id)}
|
||||
data-confirm="Are you sure?"
|
||||
>
|
||||
<a onClick={() => confirm(I18n.t('common.confirmation')) && handleDelete(id)}>
|
||||
{I18n.t('common.buttons.delete')}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -78,10 +78,7 @@ class PostStatusEditable extends React.Component<Props, State> {
|
||||
|
||||
<Separator />
|
||||
|
||||
<a
|
||||
onClick={() => handleDelete(id)}
|
||||
data-confirm="Are you sure?"
|
||||
>
|
||||
<a onClick={() => confirm(I18n.t('common.confirmation')) && handleDelete(id)}>
|
||||
{I18n.t('common.buttons.delete')}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user