Skip to content

Commit

Permalink
Set names and actions to switchable = false
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Mar 20, 2024
1 parent 1f586d3 commit dce19e0
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/Presenters/AccessoryPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('general.name'),
'formatter' => 'accessoriesLinkFormatter',
], [
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/AssetMaintenancesPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public static function dataTableLayout()
'field' => 'title',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('admin/asset_maintenances/form.title'),
], [
'field' => 'start_date',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/AssetModelPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'visible' => true,
'title' => trans('general.name'),
'formatter' => 'modelsLinkFormatter',
Expand Down
2 changes: 1 addition & 1 deletion app/Presenters/AssetPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static function dataTableLayout()
'field' => 'checkincheckout',
'searchable' => false,
'sortable' => false,
'switchable' => true,
'switchable' => false,
'title' => trans('general.checkin').'/'.trans('general.checkout'),
'visible' => true,
'formatter' => 'hardwareInOutFormatter',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/CategoryPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('general.name'),
'visible' => true,
'formatter' => 'categoriesLinkFormatter',
Expand Down
2 changes: 1 addition & 1 deletion app/Presenters/CompanyPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => true,
'switchable' => false,
'title' => trans('admin/companies/table.name'),
'visible' => true,
'formatter' => 'companiesLinkFormatter',
Expand Down
2 changes: 1 addition & 1 deletion app/Presenters/ComponentPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function dataTableLayout()
'field' => 'checkincheckout',
'searchable' => false,
'sortable' => false,
'switchable' => true,
'switchable' => false,
'title' => trans('general.checkin').'/'.trans('general.checkout'),
'visible' => true,
'formatter' => 'componentsInOutFormatter',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/ConsumablePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('general.name'),
'visible' => true,
'formatter' => 'consumablesLinkFormatter',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/DepreciationPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('general.name'),
'visible' => true,
'formatter' => 'depreciationsLinkFormatter',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/DepreciationReportPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static function dataTableLayout()
"field" => "name",
"searchable" => true,
"sortable" => true,
'switchable' => false,
"title" => trans('admin/hardware/form.name'),
"visible" => false,
], [
Expand Down
5 changes: 3 additions & 2 deletions app/Presenters/LicensePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('general.name'),
'formatter' => 'licensesLinkFormatter',
], [
Expand Down Expand Up @@ -186,7 +187,7 @@ public static function dataTableLayout()
'field' => 'checkincheckout',
'searchable' => false,
'sortable' => false,
'switchable' => true,
'switchable' => false,
'title' => trans('general.checkin').'/'.trans('general.checkout'),
'visible' => true,
'formatter' => 'licensesInOutFormatter',
Expand Down Expand Up @@ -280,7 +281,7 @@ public static function dataTableLayoutSeats()
'field' => 'checkincheckout',
'searchable' => false,
'sortable' => false,
'switchable' => true,
'switchable' => false,
'title' => trans('general.checkin').'/'.trans('general.checkout'),
'visible' => true,
'formatter' => 'licenseSeatInOutFormatter',
Expand Down
1 change: 1 addition & 0 deletions app/Presenters/ManufacturerPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static function dataTableLayout()
'field' => 'name',
'searchable' => true,
'sortable' => true,
'switchable' => false,
'title' => trans('admin/manufacturers/table.name'),
'visible' => true,
'formatter' => 'manufacturersLinkFormatter',
Expand Down

0 comments on commit dce19e0

Please sign in to comment.