Commit 9ddea6ee authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '19804-fix-disappearing-badge-after-commit-edit' into 'master'

Fix disappearing badge in commit image thread edit

See merge request gitlab-org/gitlab!69137
parents db82cd71 7dac314f
......@@ -670,6 +670,10 @@ export default class Notes {
updateNote(noteEntity, $targetNote) {
// Convert returned HTML to a jQuery object so we can modify it further
const $noteEntityEl = $(noteEntity.html);
const $noteAvatar = $noteEntityEl.find('.image-diff-avatar-link');
const $targetNoteBadge = $targetNote.find('.badge');
$noteAvatar.append($targetNoteBadge);
this.revertNoteEditForm($targetNote);
$noteEntityEl.renderGFM();
// Find the note's `li` element by ID and replace it with the updated HTML
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment