Removing reorder behaviour from Feed controller

This commit is contained in:
Jason Williams 2020-12-30 15:15:50 -07:00
parent cecb01901f
commit 1fd2880216
2 changed files with 27 additions and 20 deletions

View File

@ -5,11 +5,13 @@ use BackendMenu;
class Feed extends Controller
{
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController', 'Backend\Behaviors\ReorderController' ];
public $implement = [
'Backend\Behaviors\ListController',
'Backend\Behaviors\FormController'
];
public $listConfig = 'config_list.yaml';
public $formConfig = 'config_form.yaml';
public $reorderConfig = 'config_reorder.yaml';
public function __construct()
{

View File

@ -1,6 +1,5 @@
<div data-control="toolbar">
<a href="<?= Backend::url('jasonwilliams/feed/feed/create') ?>" class="btn btn-primary oc-icon-plus"><?= e(trans('backend::lang.form.create')) ?></a>
<a href="<?= Backend::url('jasonwilliams/feed/feed/reorder') ?>" class="btn btn-default oc-icon-list"><?= e(trans('backend::lang.reorder.default_title')) ?></a>
<button
class="btn btn-default oc-icon-trash-o"
disabled="disabled"
@ -16,4 +15,10 @@
data-stripe-load-indicator>
<?= e(trans('backend::lang.list.delete_selected')) ?>
</button>
<a
href="<?= Backend::url('jasonwilliams/feed/import') ?>"
class="btn btn-default oc-icon-upload">
Fetch posts
</a>
</div>