From 4e81b97145779dfe2a2acc440b23d2d9ad8cc7a1 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 11 Mar 2017 05:30:14 -0800 Subject: [PATCH] Toggle visibility of fields in categories presenter --- app/Presenters/CategoryPresenter.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Presenters/CategoryPresenter.php b/app/Presenters/CategoryPresenter.php index 0d7a7d46b6..7dbcb4d541 100644 --- a/app/Presenters/CategoryPresenter.php +++ b/app/Presenters/CategoryPresenter.php @@ -30,7 +30,7 @@ class CategoryPresenter extends Presenter "searchable" => true, "sortable" => true, "title" => trans('general.name'), - "visible" => false, + "visible" => true, "formatter" => 'categoriesLinkFormatter', ],[ "field" => "type", @@ -43,13 +43,13 @@ class CategoryPresenter extends Presenter "searchable" => false, "sortable" => false, "title" => trans('general.assets'), - "visible" => false + "visible" => true ], [ "field" => "accessories_count", "searchable" => false, "sortable" => false, "title" => trans('general.accessories'), - "visible" => false + "visible" => true ], [ "field" => "consumables_count", "searchable" => false, @@ -74,7 +74,7 @@ class CategoryPresenter extends Presenter "searchable" => false, "sortable" => false, "title" => trans('admin/categories/table.require_acceptance'), - "visible" => false, + "visible" => true, "formatter" => 'trueFalseFormatter', ], [ "field" => "actions", @@ -82,6 +82,7 @@ class CategoryPresenter extends Presenter "sortable" => false, "switchable" => false, "title" => trans('table.actions'), + "visible" => true, "formatter" => "categoriesActionsFormatter", ] ];