|
93 | 93 | type : 'number', |
94 | 94 | value : Number(props.attributes.release) |
95 | 95 | }), |
96 | | - el(ToggleControl, |
| 96 | + /*el(ToggleControl, |
97 | 97 | { |
98 | 98 | label : cbxchangelog_block.general_settings.show_label, |
99 | 99 | onChange: (value) => { |
|
102 | 102 | type : 'number', |
103 | 103 | checked : props.attributes.show_label |
104 | 104 | } |
105 | | - ), |
106 | | - el(ToggleControl, |
107 | | - { |
108 | | - label : cbxchangelog_block.general_settings.show_date, |
109 | | - onChange: (value) => { |
110 | | - props.setAttributes({show_date: value}); |
111 | | - }, |
112 | | - checked : props.attributes.show_date |
113 | | - } |
114 | | - ), |
115 | | - el(ToggleControl, |
116 | | - { |
117 | | - label : cbxchangelog_block.general_settings.show_url, |
118 | | - onChange: (value) => { |
119 | | - props.setAttributes({show_url: value}); |
120 | | - }, |
121 | | - checked : props.attributes.show_url |
122 | | - } |
123 | | - ), |
124 | | - el(ToggleControl, |
125 | | - { |
126 | | - label : cbxchangelog_block.general_settings.relative_date, |
127 | | - onChange: (value) => { |
128 | | - props.setAttributes({relative_date: value}); |
129 | | - }, |
130 | | - checked : props.attributes.relative_date |
131 | | - } |
132 | | - ), |
| 105 | + ),*/ |
| 106 | + el(SelectControl, { |
| 107 | + label : cbxchangelog_block.general_settings.show_label, |
| 108 | + options : cbxchangelog_block.general_settings.show_label_options, |
| 109 | + onChange: (value) => { |
| 110 | + props.setAttributes({ |
| 111 | + show_label: String(value) |
| 112 | + }); |
| 113 | + }, |
| 114 | + value : String(props.attributes.show_label) |
| 115 | + }), |
| 116 | + |
| 117 | + el(SelectControl, { |
| 118 | + label : cbxchangelog_block.general_settings.show_date, |
| 119 | + options : cbxchangelog_block.general_settings.show_label_options, |
| 120 | + onChange: (value) => { |
| 121 | + props.setAttributes({ |
| 122 | + show_date: String(value) |
| 123 | + }); |
| 124 | + }, |
| 125 | + value : String(props.attributes.show_date) |
| 126 | + }), |
| 127 | + el(SelectControl, { |
| 128 | + label : cbxchangelog_block.general_settings.show_url, |
| 129 | + options : cbxchangelog_block.general_settings.show_label_options, |
| 130 | + onChange: (value) => { |
| 131 | + props.setAttributes({ |
| 132 | + show_url: String(value) |
| 133 | + }); |
| 134 | + }, |
| 135 | + value : String(props.attributes.show_url) |
| 136 | + }), |
| 137 | + el(SelectControl, { |
| 138 | + label : cbxchangelog_block.general_settings.relative_date, |
| 139 | + options : cbxchangelog_block.general_settings.show_label_options, |
| 140 | + onChange: (value) => { |
| 141 | + props.setAttributes({ |
| 142 | + relative_date: String(value) |
| 143 | + }); |
| 144 | + }, |
| 145 | + value : String(props.attributes.relative_date) |
| 146 | + }), |
133 | 147 | el(SelectControl, { |
134 | 148 | label : cbxchangelog_block.general_settings.layout, |
135 | 149 | options : cbxchangelog_block.general_settings.layout_options, |
|
159 | 173 | }); |
160 | 174 | }, |
161 | 175 | value : props.attributes.orderby |
| 176 | + }), |
| 177 | + el(TextControl, { |
| 178 | + label : cbxchangelog_block.general_settings.count, |
| 179 | + onChange: (value) => { |
| 180 | + props.setAttributes({ |
| 181 | + count: parseInt(value) |
| 182 | + }); |
| 183 | + }, |
| 184 | + type : 'number', |
| 185 | + value : Number(props.attributes.count) |
162 | 186 | }) |
163 | 187 | ) |
164 | 188 | ) |
|
0 commit comments