Fix timeline notice dismiss not updating the UI.
Include notice in the timeline view fingerprint so clearNotice triggers a re-render.
This commit is contained in:
@@ -1039,7 +1039,7 @@
|
||||
const note = el("span", "tl-notice", st.notice);
|
||||
const dismiss = el("button", "tl-notice-dismiss", "✕");
|
||||
dismiss.title = "Dismiss";
|
||||
dismiss.onclick = () => S.clearNotice();
|
||||
dismiss.onclick = (e) => { e.stopPropagation(); S.clearNotice(); };
|
||||
note.append(dismiss);
|
||||
meta.append(note);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
keepAud: p.keep_original_audio,
|
||||
gen: st.gen?.state,
|
||||
labels: (st.ratingLabels || []).length,
|
||||
notice: st.notice || "",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user