mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Update ItemList API
This commit is contained in:
@@ -55,8 +55,8 @@ export default function() {
|
|||||||
|
|
||||||
const controls = PostControls.destructiveControls(this.props.post);
|
const controls = PostControls.destructiveControls(this.props.post);
|
||||||
|
|
||||||
Object.keys(controls).forEach(k => {
|
Object.keys(controls.items).forEach(k => {
|
||||||
const props = controls[k].content.props;
|
const props = controls.get(k).props;
|
||||||
|
|
||||||
props.className = 'Button';
|
props.className = 'Button';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user