refactor: show description only when fieldtype is Select
This commit is contained in:
parent
642dbe0a5a
commit
51ae9c8536
1 changed files with 6 additions and 0 deletions
|
|
@ -57,6 +57,12 @@ let docfield_df = computed(() => {
|
|||
df.fieldtype = "Select";
|
||||
df.options = ["", "Email", "Name", "Phone", "URL", "Barcode", "IBAN"];
|
||||
}
|
||||
|
||||
if (store.form.selected_field.fieldtype === "Select") {
|
||||
df.description = __("Enter list of Options, each on a new line.");
|
||||
} else {
|
||||
df.description = "";
|
||||
}
|
||||
}
|
||||
|
||||
// show link_filters docfield only when link field is selected
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue