mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #13302 from snipe/features/env_setting_for_bs_tables
Fixed #13256 - Added option to switch to localStorage instead of cookies
This commit is contained in:
commit
232e84acf7
|
@ -85,6 +85,7 @@ COOKIE_NAME=snipeit_session
|
||||||
COOKIE_DOMAIN=null
|
COOKIE_DOMAIN=null
|
||||||
SECURE_COOKIES=false
|
SECURE_COOKIES=false
|
||||||
API_TOKEN_EXPIRATION_YEARS=15
|
API_TOKEN_EXPIRATION_YEARS=15
|
||||||
|
BS_TABLE_STORAGE=cookieStorage
|
||||||
|
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# OPTIONAL: SECURITY HEADER SETTINGS
|
# OPTIONAL: SECURITY HEADER SETTINGS
|
||||||
|
|
|
@ -158,4 +158,20 @@ return [
|
||||||
|
|
||||||
'secure' => env('SECURE_COOKIES', false),
|
'secure' => env('SECURE_COOKIES', false),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Bootstrap Table Storage Type
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Set the storage that this Bootstrap Table will use.
|
||||||
|
| Valid options are:
|
||||||
|
| - cookieStorage
|
||||||
|
| - localStorage: use this if you have a LOT of custom fields and are getting a REQUEST TOO LARGE error
|
||||||
|
| - sessionStorage
|
||||||
|
|
|
||||||
|
| More info: https://bootstrap-table.com/docs/extensions/cookie/#cookiestorage
|
||||||
|
*/
|
||||||
|
|
||||||
|
'bs_table_storage' => env('BS_TABLE_STORAGE', 'cookieStorage'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
stickyHeaderOffsetY: stickyHeaderOffsetY + 'px',
|
stickyHeaderOffsetY: stickyHeaderOffsetY + 'px',
|
||||||
undefinedText: '',
|
undefinedText: '',
|
||||||
iconsPrefix: 'fa',
|
iconsPrefix: 'fa',
|
||||||
|
cookieStorage: '{{ config('session.bs_table_storage') }}',
|
||||||
cookie: true,
|
cookie: true,
|
||||||
cookieExpire: '2y',
|
cookieExpire: '2y',
|
||||||
mobileResponsive: true,
|
mobileResponsive: true,
|
||||||
|
|
Loading…
Reference in a new issue