@@ -84,6 +84,12 @@ const AddOrEditACL = () => {
8484 placeholder = "e.g., admin, editor, viewer"
8585 onChange = { ( value ) => setRule ( "role" , value ) }
8686 />
87+ < Checkbox
88+ checked = { ! ! rule . is_regex }
89+ onChange = { ( ) => setRule ( "is_regex" , ( v ) => ! v ) }
90+ >
91+ { t ( `acl.is_regex` ) }
92+ </ Checkbox >
8793 < Item
8894 name = "path"
8995 type = { ACLItemType . String }
@@ -92,27 +98,21 @@ const AddOrEditACL = () => {
9298 placeholder = "e.g., / or /folder/subfolder"
9399 onChange = { ( value ) => setRule ( "path" , value ) }
94100 />
95- < Item
96- name = "priority"
97- type = { ACLItemType . Number }
98- value = { rule . priority }
99- min = { 0 }
100- onChange = { ( value ) => setRule ( "priority" , value ) }
101- />
102- < Checkbox
103- checked = { ! ! rule . is_regex }
104- onChange = { ( ) => setRule ( "is_regex" , ( v ) => ! v ) }
105- >
106- { t ( `acl.is_regex` ) }
107- </ Checkbox >
108101 < Checkbox
109102 checked = { ! ! rule . exclude_subfolder }
110103 onChange = { ( ) => setRule ( "exclude_subfolder" , ( v ) => ! v ) }
111104 >
112105 { t ( "acl.exclude_subfolder" , {
113- default : "不包含子文件夹(不自动匹配/*)" ,
106+ default : "不包含子文件夹(不自动匹配.. /*)" ,
114107 } ) }
115108 </ Checkbox >
109+ < Item
110+ name = "priority"
111+ type = { ACLItemType . Number }
112+ value = { rule . priority }
113+ min = { 0 }
114+ onChange = { ( value ) => setRule ( "priority" , value ) }
115+ />
116116 </ ResponsiveGrid >
117117
118118 < Container mt = "$4" w = "$full" >
0 commit comments