Skip to content

Commit 2362a84

Browse files
committed
use other button method
1 parent caf7398 commit 2362a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/CreatesListButton.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function addInstantCreateButtonToList(
1717
'content' => $content,
1818
];
1919

20-
$this->crud->addButtonFromView('line', $foreignAjaxEntity, 'webfactor::buttons.create');
21-
$this->crud->addButtonFromView('bottom', $foreignAjaxEntity, 'webfactor::buttons.fake');
20+
$this->crud->addButton('line', $foreignAjaxEntity, 'view', 'webfactor::buttons.create');
21+
$this->crud->addButton('bottom', $foreignAjaxEntity, 'view', 'webfactor::buttons.fake');
2222
}
2323
}

0 commit comments

Comments
 (0)