Fixed note edit not updating Vue element
This commit is contained in:
parent
14710f7704
commit
3e80f46407
1 changed files with 16 additions and 1 deletions
|
@ -427,7 +427,22 @@
|
|||
$html.syntaxHighlight();
|
||||
$html.find('.js-task-list-container').taskList('enable');
|
||||
$note_li = $('.note-row-' + note.id);
|
||||
return $note_li.replaceWith($html);
|
||||
|
||||
if (DiffNotesApp != null) {
|
||||
ref = DiffNotesApp.$refs['' + note.id + ''];
|
||||
|
||||
if (ref) {
|
||||
ref.$destroy(true);
|
||||
}
|
||||
}
|
||||
|
||||
$note_li.replaceWith($html);
|
||||
|
||||
if ($('resolve-btn, resolve-all-btn').length && (typeof DiffNotesApp !== "undefined" && DiffNotesApp !== null)) {
|
||||
$('resolve-btn, resolve-all-btn').each(function () {
|
||||
DiffNotesApp.$compile($(this).get(0))
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue