This commit is contained in:
rizky 2024-07-28 21:28:37 -07:00
parent 1ed9d3148c
commit 61392ac245
3 changed files with 10 additions and 0 deletions

View File

@ -151,6 +151,14 @@ ${
md.selected = form;
md.render();
fm.render();
if (fm.props.back_on_save === "y") {
md.selected = null;
md.tab.active = "master";
md.internal.action_should_refresh = true;
md.params.apply();
md.render();
}
}`
}
} catch (e) {

View File

@ -14,6 +14,7 @@ export type FMProps = {
layout: "auto" | "1-col" | "2-col";
meta: any;
item: any;
back_on_save: "y" | "n";
label_width: number;
gen_fields: any;
gen_table: string;

View File

@ -68,6 +68,7 @@ export const generateMDForm = async (
md.internal.action_should_refresh = true;
md.params.apply();
md.render();
},
},
];