add front-comments
This commit is contained in:
parent
c3ea78cab5
commit
c9f4af7e58
53 changed files with 2921 additions and 1 deletions
19
site/plugins/front-comments/dialogs/delete-comment.php
Normal file
19
site/plugins/front-comments/dialogs/delete-comment.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
use AdrienPayet\FrontComments\Comment;
|
||||
|
||||
return [
|
||||
'pattern' => 'comments/delete/(:any)/(:all)',
|
||||
'load' => function (string $commentId, string $pageUri) {
|
||||
return [
|
||||
'component' => 'k-remove-dialog',
|
||||
'props' => [
|
||||
'text' => t('adrienpayet.front-comments.confirm-delete-comment')
|
||||
]
|
||||
];
|
||||
},
|
||||
'submit' => function (string $commentId, string $pageUri) {
|
||||
deleteComment($pageUri, $commentId);
|
||||
return true;
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue