File tree 5 files changed +15
-17
lines changed
view/adminhtml/ui_component
5 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 26
26
use Opengento \Document \Model \ResourceModel \Document \Collection ;
27
27
use Opengento \Document \Model \ResourceModel \Document \CollectionFactory ;
28
28
29
- final class DocumentRepository implements DocumentRepositoryInterface
29
+ class DocumentRepository implements DocumentRepositoryInterface
30
30
{
31
31
/**
32
32
* @var DocumentInterfaceFactory
Original file line number Diff line number Diff line change 26
26
use Opengento \Document \Model \ResourceModel \DocumentType \Collection ;
27
27
use Opengento \Document \Model \ResourceModel \DocumentType \CollectionFactory ;
28
28
29
- final class DocumentTypeRepository implements DocumentTypeRepositoryInterface
29
+ class DocumentTypeRepository implements DocumentTypeRepositoryInterface
30
30
{
31
31
/**
32
32
* @var DocumentTypeInterfaceFactory
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \Validator \AbstractValidator ;
11
11
use Magento \Framework \Validator \ValidatorInterface ;
12
12
13
- final class Validator extends AbstractValidator
13
+ class Validator extends AbstractValidator
14
14
{
15
15
/**
16
16
* @var ValidatorInterface[]
Original file line number Diff line number Diff line change 22
22
</argument >
23
23
</arguments >
24
24
</type >
25
- <virtualType name = " Opengento\Document\Model\Document\Collection\FrontendVisibilityModifier " type =" Opengento\Document\Model\Document\Collection\VisibilityModifier" >
25
+ <type name =" Opengento\Document\Model\Document\Collection\VisibilityModifier" >
26
26
<arguments >
27
27
<argument name =" visibilities" xsi : type =" array" >
28
28
<item name =" public" xsi : type =" const" >Opengento\Document\Model\DocumentType\Visibility::VISIBILITY_PUBLIC</item >
29
29
</argument >
30
30
</arguments >
31
- </virtualType >
31
+ </type >
32
32
</config >
Original file line number Diff line number Diff line change 73
73
<dataScope >code</dataScope >
74
74
</settings >
75
75
</input >
76
- <field name =" scheduled_import" formElement = " select " sortOrder =" 40" >
76
+ <checkbox name =" scheduled_import" component = " Magento_Ui/js/form/element/single-checkbox-toggle-notice " sortOrder =" 40" >
77
77
<settings >
78
- <dataType >select </dataType >
78
+ <dataType >boolean </dataType >
79
79
<label translate =" true" >Scheduled Import</label >
80
+ <description >If set to "yes", this will restrict import documents on schedule.</description >
81
+ <valueMap >
82
+ <map name =" false" xsi : type =" number" >0</map >
83
+ <map name =" true" xsi : type =" number" >1</map >
84
+ </valueMap >
85
+ <prefer >toggle</prefer >
80
86
<validation >
81
87
<rule name =" required-entry" xsi : type =" boolean" >true</rule >
82
88
</validation >
83
89
<dataScope >scheduled_import</dataScope >
84
90
</settings >
85
- <formElements >
86
- <select >
87
- <settings >
88
- <options class =" Magento\Config\Model\Config\Source\Enabledisable" />
89
- <caption translate =" true" >-- Please Select --</caption >
90
- </settings >
91
- </select >
92
- </formElements >
93
- </field >
91
+ </checkbox >
94
92
<field name =" visibility" formElement =" select" sortOrder =" 50" >
95
93
<settings >
96
94
<dataType >select</dataType >
161
159
</input >
162
160
<dynamicRows name =" file_allowed_extensions" sortOrder =" 100" >
163
161
<settings >
164
- <label translate =" true" >File Allowed Extensions </label >
162
+ <label translate =" true" >Allowed Files </label >
165
163
<addButton >true</addButton >
166
164
<addButtonLabel translate =" true" >Add Extension</addButtonLabel >
167
165
<recordTemplate >record</recordTemplate >
You can’t perform that action at this time.
0 commit comments