mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
cc53d08b4d
* 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 * Configure entity list views server side
38 lines
638 B
PHP
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,
|
|
]
|
|
]
|
|
];
|
|
|
|
}
|
|
|
|
} |