-
+
-
{{ section.df.label }}
-
{{ __("No Label") }}
import Section from "./Section.vue";
+import EditableInput from "./EditableInput.vue";
import draggable from "vuedraggable";
import { useStore } from "../store";
import { section_boilerplate } from "../utils";
@@ -102,14 +103,6 @@ function remove_tab() {
store.active_tab = tabs[prev_tab_index].df.name;
store.selected_field = null;
}
-
-function focus_on_label(tab, event) {
- if (!store.read_only) {
- tab.editing = true;
- let $tab = event.target.closest(".tab.active");
- nextTick(() => $($tab).find("input").focus());
- }
-}
@@ -134,21 +127,12 @@ function focus_on_label(tab, event) {
@dragstart="dragged = true"
@dragend="dragged = false"
@dragover="drag_over(element)"
- @dblclick="(event) => focus_on_label(element, event)"
>
-
- {{ element.df.label }}
- {{ __("No Label") }}
@@ -204,10 +188,7 @@ function focus_on_label(tab, event) {
{{ __("Drag & Drop a section here") }}
{{ __("OR") }}
-
@@ -272,21 +253,6 @@ function focus_on_label(tab, event) {
min-width: max-content;
cursor: pointer;
- .input-tab-label {
- border: none;
-
- &:focus {
- outline: 1px solid var(--primary);
- border-radius: var(--border-radius);
- }
- }
-
- .tab-name {
- outline: none;
- border: none;
- width: fit-content;
- }
-
&:hover {
border-bottom: 1px solid var(--gray-300);
}
@@ -322,7 +288,7 @@ function focus_on_label(tab, event) {
height: 7rem;
margin: 1rem;
- &+ .empty-tab {
+ & + .empty-tab {
display: flex;
flex-direction: column;
align-items: center;
@@ -338,7 +304,7 @@ function focus_on_label(tab, event) {
}
}
- &+ .empty-tab {
+ & + .empty-tab {
display: none;
}
}
diff --git a/frappe/public/js/form_builder/form_builder.bundle.js b/frappe/public/js/form_builder/form_builder.bundle.js
index 807df78ac5..421b609d3f 100644
--- a/frappe/public/js/form_builder/form_builder.bundle.js
+++ b/frappe/public/js/form_builder/form_builder.bundle.js
@@ -86,8 +86,7 @@ class FormBuilder {
if (
this.store.doc &&
(this.store.doc.custom || this.store.doc.issingle,
- in_list(frappe.model.core_doctypes_list, this.doctype) ||
- !in_list(frappe.boot.active_domains, this.store.doc.restrict_to_domain))
+ in_list(frappe.model.core_doctypes_list, this.doctype))
) {
this.customize_form_btn.hide();
this.go_to_customize_form_btn.hide();