File tree Expand file tree Collapse file tree 5 files changed +13
-33
lines changed
Catalog/Ui/DataProvider/Product/Form/Modifier
design/adminhtml/Magento/backend/web/css/source/forms Expand file tree Collapse file tree 5 files changed +13
-33
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ protected function customizeCategoriesField(array $meta)
265
265
'chipsEnabled ' => true ,
266
266
'disableLabel ' => true ,
267
267
'levelsVisibility ' => '1 ' ,
268
+ 'disabled ' => $ fieldIsDisabled ,
268
269
'elementTmpl ' => 'ui/grid/filters/elements/ui-select ' ,
269
270
'options ' => $ this ->getCategoriesTree (),
270
271
'disabled ' => $ fieldIsDisabled ,
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
- declare (strict_types=1 );
7
6
8
7
namespace Magento \Ui \Component \Form \Element ;
9
8
@@ -52,9 +51,6 @@ public function __construct(
52
51
array $ config = []
53
52
) {
54
53
$ wysiwygConfigData = isset ($ config ['wysiwygConfigData ' ]) ? $ config ['wysiwygConfigData ' ] : [];
55
- if (isset ($ config ['disabled ' ]) && $ config ['disabled ' ] === true ) {
56
- $ config ['wysiwygConfigData ' ]['settings ' ]['readonly ' ] = 1 ;
57
- }
58
54
59
55
$ this ->form = $ formFactory ->create ();
60
56
$ wysiwygId = $ context ->getNamespace () . '_ ' . $ data ['name ' ];
Original file line number Diff line number Diff line change @@ -36,24 +36,6 @@ define([
36
36
return this ;
37
37
} ,
38
38
39
- /**
40
- * @inheritdoc
41
- */
42
- initElement : function ( elem ) {
43
- this . _super ( ) ;
44
-
45
- if ( this . disabled ) {
46
- try {
47
- elem . disabled ( true ) ;
48
- }
49
- catch ( e ) {
50
-
51
- }
52
- }
53
-
54
- return this ;
55
- } ,
56
-
57
39
/**
58
40
* Calls initObservable of parent class.
59
41
* Defines observable properties of instance.
Original file line number Diff line number Diff line change @@ -568,10 +568,8 @@ define([
568
568
* Remove element from selected array
569
569
*/
570
570
removeSelected : function ( value , data , event ) {
571
- if ( ! this . disabled ( ) ) {
572
- event ? event . stopPropagation ( ) : false ;
573
- this . value . remove ( value ) ;
574
- }
571
+ event ? event . stopPropagation ( ) : false ;
572
+ this . value . remove ( value ) ;
575
573
} ,
576
574
577
575
/**
@@ -663,9 +661,7 @@ define([
663
661
* @returns {Object } Chainable
664
662
*/
665
663
toggleListVisible : function ( ) {
666
- if ( ! this . disabled ( ) ) {
667
- this . listVisible ( ! this . listVisible ( ) ) ;
668
- }
664
+ this . listVisible ( ! this . listVisible ( ) ) ;
669
665
670
666
return this ;
671
667
} ,
Original file line number Diff line number Diff line change 156
156
.admin__field {
157
157
margin-top : 8px ;
158
158
}
159
- }
159
+ }
160
160
}
161
161
}
162
162
& .composite-bundle {
307
307
.admin__fieldset > & {
308
308
margin-bottom : 3rem ;
309
309
position : relative ;
310
-
310
+
311
311
& .field-import_file {
312
312
.input-file {
313
313
margin-top : 6px ;
361
361
cursor : inherit ;
362
362
opacity : 1 ;
363
363
outline : inherit ;
364
+ .admin__action-multiselect-wrap {
365
+ .admin__action-multiselect {
366
+ .__form-control-pattern__disabled ();
367
+ }
368
+ }
364
369
}
365
370
366
371
& ._hidden {
664
669
display : inline-block ;
665
670
}
666
671
}
667
-
672
+
668
673
669
674
+ .admin__field :last-child {
670
675
width : auto ;
700
705
width : 100% ;
701
706
}
702
707
}
703
- & > .admin__field-label {
708
+ & > .admin__field-label {
704
709
text-align : left ;
705
710
}
706
711
You can’t perform that action at this time.
0 commit comments