fix(ui): hide status banner after submission is complete

This commit is contained in:
Shrihari Mahabal 2026-03-25 16:00:28 +05:30
parent 377cc70d8b
commit 057288d3b7

View file

@ -2288,7 +2288,7 @@ frappe.ui.form.Form = class FrappeForm {
args: { doctype: this.doctype, docname: this.docname }, args: { doctype: this.doctype, docname: this.docname },
}) })
.then((r) => { .then((r) => {
if (r.message?.latest_submission) { if (r.message?.latest_submission && r.message.status !== "Finished") {
// if we are here that means some submission(s) were queued and are in queued/failed state // if we are here that means some submission(s) were queued and are in queued/failed state
let submission_label = __("Previous Submission"); let submission_label = __("Previous Submission");
let secondary = ""; let secondary = "";