Structure replies to issues as replies so that their posts don't appear so unusual.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4443 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-09-04 17:12:32 +00:00
parent d9782aa0fb
commit 5282d19b55

View File

@ -154,7 +154,7 @@ class TfIssuesAppElement extends LitElement {
<td style="max-width: 40em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer" @click=${() => this.selected = issue}>
${issue.text.split('\n')?.[0]}
</td>
<td>${new Date(issue.created).toLocaleDateString()}</td>
<td>${new Date(issue.updated ?? issue.created).toLocaleDateString()}</td>
</tr>
`;
}
@ -206,6 +206,8 @@ class TfIssuesAppElement extends LitElement {
await tfrpc.rpc.appendMessage(whoami, {
type: 'post',
text: event.detail.value,
root: this.selected.id,
branch: this.selected.updates.length ? this.selected.updates[this.selected.updates.length - 1].id : this.selected.id,
issues: [
{
link: this.selected.id,