File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
Catalog/Ui/DataProvider/Product/Form/Modifier
Ui/DataProvider/Product/Form/Modifier
view/adminhtml/web/js/components
Ui/view/base/web/templates/form Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ private function getUpdatedTierPriceStructure(array $priceMeta)
115
115
'dataType ' => Price::NAME ,
116
116
'component ' => 'Magento_Ui/js/form/components/group ' ,
117
117
'label ' => __ ('Price ' ),
118
- 'enableLabel ' => true ,
118
+ 'showLabel ' => false ,
119
119
'dataScope ' => '' ,
120
120
'additionalClasses ' => 'control-grouped ' ,
121
121
'sortOrder ' => isset ($ priceMeta ['arguments ' ]['data ' ]['config ' ]['sortOrder ' ])
Original file line number Diff line number Diff line change @@ -591,6 +591,7 @@ protected function getColumn(
591
591
'formElement ' => Container::NAME ,
592
592
'component ' => 'Magento_Ui/js/form/components/group ' ,
593
593
'label ' => $ label ,
594
+ 'showLabel ' => false ,
594
595
'dataScope ' => '' ,
595
596
];
596
597
$ container ['children ' ] = [
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ define([
11
11
12
12
return Abstract . extend ( {
13
13
defaults : {
14
- listens : {
15
- isConfigurable : 'handlePriceValue'
16
- } ,
17
14
imports : {
18
15
isConfigurable : '!ns = ${ $.ns }, index = configurable-matrix:isEmpty'
19
16
} ,
@@ -22,12 +19,15 @@ define([
22
19
}
23
20
} ,
24
21
25
- /**
26
- * Invokes initialize method of parent class,
27
- * contains initialization logic
28
- */
22
+ /** @inheritdoc */
29
23
initialize : function ( ) {
30
24
this . _super ( ) ;
25
+ // resolve initial disable state
26
+ this . handlePriceValue ( this . isConfigurable ) ;
27
+ // add listener to track "configurable" type
28
+ this . setListeners ( {
29
+ isConfigurable : 'handlePriceValue'
30
+ } ) ;
31
31
32
32
return this ;
33
33
} ,
@@ -50,11 +50,10 @@ define([
50
50
* @param {String } isConfigurable
51
51
*/
52
52
handlePriceValue : function ( isConfigurable ) {
53
+ this . disabled ( ! ! this . isUseDefault ( ) || isConfigurable ) ;
54
+
53
55
if ( isConfigurable ) {
54
- this . disable ( ) ;
55
56
this . clear ( ) ;
56
- } else {
57
- this . enable ( ) ;
58
57
}
59
58
}
60
59
} ) ;
Original file line number Diff line number Diff line change 8
8
visible ="visible "
9
9
css ="$data.additionalClasses "
10
10
attr ="'data-index': index ">
11
- < div class ="admin__field-label ">
12
- < label if =" $data.label " visible =" $data.labelVisible " attr ="for: uid ">
11
+ < div class ="admin__field-label " if =" $data.label " visible =" $data.labelVisible " >
12
+ < label attr ="for: uid ">
13
13
< span translate ="label " attr ="'data-config-scope': $data.scopeLabel " />
14
14
</ label >
15
15
</ div >
You can’t perform that action at this time.
0 commit comments