invoiceninja/app/DataMapper/DefaultSettings.php
David Bomba b635f3b32e
Implement Bulk Actions (#2605)
* Wired up Bulk Archive / Delete / Restore button with reactivity on checkbox actions

* Working on POSTing bulk actions

* Working on Filtering by status

* Add Action Entity

* Implement Vuex for state management

* Implement Vuex storage & list view bulk actions

* Clean up console logs
2019-01-19 17:21:34 +11:00

38 lines
638 B
PHP

<?php
namespace App\DataMapper;
use App\Models\Client;
class DefaultSettings
{
public static $per_page = 20;
public static function userSettings() : \stdClass
{
return (object)[
class_basename(Client::class) => self::clientSettings(),
];
}
private static function clientSettings() : \stdClass
{
return (object)[
'datatable' => (object) [
'per_page' => self::$per_page,
'column_visibility' => (object)[
'name' => true,
'contact' => true,
'email' => true,
'client_created_at' => true,
'last_login' => true,
'balance' => true,
]
]
];
}
}