This commit is contained in:
2025-12-24 10:55:40 +08:00
parent eec9d6045c
commit 752bb23571
25 changed files with 2348 additions and 816 deletions

View File

@@ -511,6 +511,33 @@ export function createHideMessageCommentTail(This, optionName, comment, commentT
span.appendChild(icon);
span.addEventListener('click', () => hisFunc(comment.Id));
}),
createElement('span', span => {
span.className = 'sbutton iconreply';
span.style.padding = '0';
span.style.fontSize = '12px';
setTooltip(span, option?.getText('FLTL_03432', 'Reply'));
span.style.display = comment.AllowReply ? '' : 'none';
if (comment.AllowReply) {
span.addEventListener('click', function () {
This._var.replymsgid = comment.Id;
This._var.replymsgctrl.querySelector('.reply-user').innerText = (comment.Sender || comment.UserName) + ":";
var msg = comment.Message || comment.Comment;
if (comment.MessageType == 2)
msg = option?.getText('FLTL_00491', 'Call Log');
This._var.replymsgctrl.querySelector('.reply-msg').textContent = msg;
This._var.replymsgctrl.style.display = '';
});
}
}),
createElement('span', span => {
span.style.margin = '0 5px 0 0';
span.style.color = '#2594fd';
span.style.display = comment.ReplyCount > 0 ? '' : 'none';
if (comment.ReplyCount > 1)
span.innerText = comment.ReplyCount + ' ' + option?.getText('FLTL_03433', 'Replies');
else
span.innerText = comment.ReplyCount + ' ' + option?.getText('FLTL_03432', 'Reply');
}),
createElement('span', span => {
span.innerText = comment[commentTime];
})