aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/reply_button.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/reply_button.php')
-rw-r--r--templates/reply_button.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/reply_button.php b/templates/reply_button.php
index 1b9736b..aeaeabd 100644
--- a/templates/reply_button.php
+++ b/templates/reply_button.php
@@ -2,6 +2,10 @@
use Digitigrade\Model\Note;
$icon = count(Note::findAllInThread($note, 2)) > 1 ? 'reply_all' : 'reply';
-?>
-<button title="<?= __('note.action.reply') ?>" class="icon material-symbols-outlined reply"
- _="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active"><?= $icon ?></button> \ No newline at end of file
+$id = "interactButton-reply-$note->id"
+ ?>
+<div class="interactButtonContainer reply">
+ <button title="<?= __('note.action.reply') ?>" class="icon material-symbols-outlined reply" id="<?= $id ?>"
+ _="on click send toggle to [me, next .noteReplyForm] on toggle toggle .active on closest <div/>"><?= $icon ?></button>
+ <label for="<?= $id ?>"><?= $count ?? '' ?></label>
+</div> \ No newline at end of file