fix: move allow_edit property after doc_status
This commit is contained in:
parent
f209474ba0
commit
5fccffb676
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ let properties = computed(() => {
|
|||
});
|
||||
} else if (store.workflow.selected && "state" in store.workflow.selected.data) {
|
||||
title.value = "State Properties";
|
||||
let allow_edit = store.statefields.find(df => df.fieldname == "allow_edit");
|
||||
store.statefields = store.statefields.filter(df => df.fieldname != "allow_edit");
|
||||
store.statefields.splice(2, 0, allow_edit);
|
||||
|
||||
return store.statefields.filter(df => {
|
||||
if (df.fieldname == "doc_status") {
|
||||
df.options = ["Draft", "Submitted", "Cancelled"];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue