Skip to content

Commit e63e6eb

Browse files
authored
Merge pull request #16 from webfactor/1.3
use other button method
2 parents 02ed818 + 2362a84 commit e63e6eb

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)