mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Toggle visibility of fields in categories presenter
This commit is contained in:
parent
a680541fe8
commit
4e81b97145
|
@ -30,7 +30,7 @@ class CategoryPresenter extends Presenter
|
||||||
"searchable" => true,
|
"searchable" => true,
|
||||||
"sortable" => true,
|
"sortable" => true,
|
||||||
"title" => trans('general.name'),
|
"title" => trans('general.name'),
|
||||||
"visible" => false,
|
"visible" => true,
|
||||||
"formatter" => 'categoriesLinkFormatter',
|
"formatter" => 'categoriesLinkFormatter',
|
||||||
],[
|
],[
|
||||||
"field" => "type",
|
"field" => "type",
|
||||||
|
@ -43,13 +43,13 @@ class CategoryPresenter extends Presenter
|
||||||
"searchable" => false,
|
"searchable" => false,
|
||||||
"sortable" => false,
|
"sortable" => false,
|
||||||
"title" => trans('general.assets'),
|
"title" => trans('general.assets'),
|
||||||
"visible" => false
|
"visible" => true
|
||||||
], [
|
], [
|
||||||
"field" => "accessories_count",
|
"field" => "accessories_count",
|
||||||
"searchable" => false,
|
"searchable" => false,
|
||||||
"sortable" => false,
|
"sortable" => false,
|
||||||
"title" => trans('general.accessories'),
|
"title" => trans('general.accessories'),
|
||||||
"visible" => false
|
"visible" => true
|
||||||
], [
|
], [
|
||||||
"field" => "consumables_count",
|
"field" => "consumables_count",
|
||||||
"searchable" => false,
|
"searchable" => false,
|
||||||
|
@ -74,7 +74,7 @@ class CategoryPresenter extends Presenter
|
||||||
"searchable" => false,
|
"searchable" => false,
|
||||||
"sortable" => false,
|
"sortable" => false,
|
||||||
"title" => trans('admin/categories/table.require_acceptance'),
|
"title" => trans('admin/categories/table.require_acceptance'),
|
||||||
"visible" => false,
|
"visible" => true,
|
||||||
"formatter" => 'trueFalseFormatter',
|
"formatter" => 'trueFalseFormatter',
|
||||||
], [
|
], [
|
||||||
"field" => "actions",
|
"field" => "actions",
|
||||||
|
@ -82,6 +82,7 @@ class CategoryPresenter extends Presenter
|
||||||
"sortable" => false,
|
"sortable" => false,
|
||||||
"switchable" => false,
|
"switchable" => false,
|
||||||
"title" => trans('table.actions'),
|
"title" => trans('table.actions'),
|
||||||
|
"visible" => true,
|
||||||
"formatter" => "categoriesActionsFormatter",
|
"formatter" => "categoriesActionsFormatter",
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue