fix: misc onboarding fixes (#21078)

* fix: show fields without label too

* fix: make form tour step editable

* fix: hide duplicate save buttons


[skip ci]
This commit is contained in:
Ankush Menat 2023-05-23 15:39:00 +05:30 committed by GitHub
parent 5b881636bb
commit 119313810e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View file

@ -2,6 +2,7 @@
"actions": [],
"creation": "2021-05-21 23:05:45.342114",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"is_table_field",
@ -115,7 +116,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-01-27 15:18:36.481801",
"modified": "2023-05-23 13:09:15.923043",
"modified_by": "Administrator",
"module": "Desk",
"name": "Form Tour Step",

View file

@ -1994,7 +1994,8 @@ frappe.ui.form.Form = class FrappeForm {
return new Promise((resolve) => {
frappe.model.with_doctype(reference_doctype, () => {
frappe.get_meta(reference_doctype).fields.map((df) => {
filter_function(df) && options.push({ label: df.label, value: df.fieldname });
filter_function(df) &&
options.push({ label: df.label || df.fieldname, value: df.fieldname });
});
options &&
this.set_df_property(

View file

@ -261,10 +261,10 @@ frappe.ui.form.FormTour = class FormTour {
allowClose: false,
overlayClickNext: false,
popover: {
title: __("Save"),
title: __("Save the document."),
description: "",
position: "left",
doneBtnText: __("Save"),
showButtons: false,
},
onNext: () => {
this.frm.save();