When localStorage draft exists for comment reply, show it on load
When a user has a comment draft saved in localstorage, we do not indicate that on page load at all; the user can only see their comment draft by clicking reply and seeing the draft populated into the markdown editor. This MR changes the noteable_discussion component's behavior such that it exposes the markdown editor with the user's comment draft on page load if there is a saved draft for the comment in localstorage. Changelog: fixed
显示
- app/assets/javascripts/lib/utils/autosave.js 3 个添加, 0 个删除app/assets/javascripts/lib/utils/autosave.js
- app/assets/javascripts/notes/components/noteable_discussion.vue 9 个添加, 5 个删除...sets/javascripts/notes/components/noteable_discussion.vue
- app/assets/javascripts/notes/components/notes_app.vue 10 个添加, 1 个删除app/assets/javascripts/notes/components/notes_app.vue
- spec/frontend/notes/components/noteable_discussion_spec.js 29 个添加, 0 个删除spec/frontend/notes/components/noteable_discussion_spec.js
想要评论请 注册 或 登录