File tree Expand file tree Collapse file tree
resources/js/components/blueprints Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 :initial-tabs =" tabs"
3434 :errors =" errors?.tabs"
3535 :can-define-localizable =" canDefineLocalizable"
36+ show-section-collapsible-field
3637 @updated =" tabsUpdated"
3738 />
3839 </div >
Original file line number Diff line number Diff line change 5757 <ui-field :label =" __('Instructions')" >
5858 <ui-input type =" text" v-model =" editingSection.instructions" />
5959 </ui-field >
60- <ui-field :label =" __('Collapsible')" >
60+ <ui-field :label =" __('Collapsible')" v-if = " showCollapsibleField " >
6161 <ui-switch v-model =" editingSection.collapsible" />
6262 </ui-field >
63- <ui-field :label =" __('Collapsed by default')" v-if =" editingSection.collapsible" >
63+ <ui-field :label =" __('Collapsed by default')" v-if =" showCollapsibleField && editingSection.collapsible" >
6464 <ui-switch v-model =" editingSection.collapsed" />
6565 </ui-field >
6666 <ui-field :label =" __('Icon')" v-if =" showHandleField" >
@@ -143,6 +143,7 @@ export default {
143143 tabId: { type: String },
144144 section: { type: Object , required: true },
145145 showHandleField: { type: Boolean , default: false },
146+ showCollapsibleField: { type: Boolean , default: false },
146147 showHideField: { type: Boolean , default: false },
147148 editText: { type: String },
148149 },
Original file line number Diff line number Diff line change 99 :can-define-localizable =" canDefineLocalizable"
1010 :tab-id =" tabId"
1111 :show-handle-field =" showSectionHandleField"
12+ :show-collapsible-field =" showSectionCollapsibleField"
1213 :show-hide-field =" showSectionHideField"
1314 :edit-text =" editSectionText"
1415 @updated =" updateSection(i, $event)"
@@ -67,6 +68,10 @@ export default {
6768 type: Boolean ,
6869 default: false ,
6970 },
71+ showSectionCollapsibleField: {
72+ type: Boolean ,
73+ default: false ,
74+ },
7075 showSectionHideField: {
7176 type: Boolean ,
7277 default: false ,
Original file line number Diff line number Diff line change 88 :add-section-text =" addSectionText"
99 :edit-section-text =" editSectionText"
1010 :show-section-handle-field =" showSectionHandleField"
11+ :show-section-collapsible-field =" showSectionCollapsibleField"
1112 :show-section-hide-field =" showSectionHideField"
1213 :can-define-localizable =" canDefineLocalizable"
1314 @updated =" sectionsUpdated($event)"
@@ -36,6 +37,10 @@ export default {
3637 type: Boolean ,
3738 default: false ,
3839 },
40+ showSectionCollapsibleField: {
41+ type: Boolean ,
42+ default: false ,
43+ },
3944 showSectionHideField: {
4045 type: Boolean ,
4146 default: false ,
Original file line number Diff line number Diff line change 3838 :tab =" tab"
3939 v-show =" currentTab === tab._id"
4040 :show-section-handle-field =" showSectionHandleField"
41+ :show-section-collapsible-field =" showSectionCollapsibleField"
4142 :show-section-hide-field =" showSectionHideField"
4243 :new-section-text =" newSectionText"
4344 :edit-section-text =" editSectionText"
@@ -112,6 +113,10 @@ export default {
112113 type: Boolean ,
113114 default: false ,
114115 },
116+ showSectionCollapsibleField: {
117+ type: Boolean ,
118+ default: false ,
119+ },
115120 showSectionHideField: {
116121 type: Boolean ,
117122 default: false ,
You can’t perform that action at this time.
0 commit comments