Draft deletion doesn't update draft display correctly

未关闭
#1,123 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
frontend, web-dev

调研方向

从 Drafts 屏幕开始,使用超过 10 个草稿重现该问题,逐个删除它们,直到只剩下 Load more... 链接。跟踪删除操作如何刷新显示的列表,并验证最新的草稿会重新填充列表,以及剩余 10 个或更少时 Load more... 会消失。

由索引模型根据 Issue 内容生成。

描述

Describe the bug

If the user has more than 10 drafts, when deleting drafts, it doesn't refill the 10 latest drafts; so you can delete all 10 until all that is left is the Load more... link. Once you click it, the remaining drafts populate.

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. Go to Drafts
  2. Ensure you have more than 10 drafts
  3. Start deleting the drafts until there is only the Load more... link left
  4. Click Load more...
Expected behavior

When deleting the drafts, the list display should account for the total drafts left and populate the new latest 10 drafts. If there are only 10 drafts, the Load more link should disappear.

Application configuration
  • Single mode or Multi-user mode? N/A
  • Database? [mysql/sqlite] Sqlite
  • Open registration? [yes/no] no
  • Federation enabled? [yes/no] yes

Version or last commit: v0.15.1

主要语言
Go
星标
5.3k
派生
413
平均合并
3 天 5 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

writefreely/writefreely 的其他 Issue

查看 writefreely/writefreely 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。