Add edit and delete actions to posts and comments (#125)

This commit is contained in:
Riccardo Graziosi
2022-06-22 10:17:42 +02:00
committed by GitHub
parent 07ca2a304a
commit bc15140512
52 changed files with 1495 additions and 481 deletions

View File

@@ -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>

View File

@@ -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>