mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 23:59:27 -04:00
refactor(recent-files): remove user config from frontend files
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
This commit is contained in:
parent
924c1b0224
commit
7e7af209e6
3 changed files with 2 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ export async function getContents(path = '/', options: { signal: AbortSignal }):
|
|||
const contentsResponse = await client.search('/', {
|
||||
signal: options.signal,
|
||||
details: true,
|
||||
data: getRecentSearch(lastTwoWeeksTimestamp, Number(store.userConfig.recent_files_limit)),
|
||||
data: getRecentSearch(lastTwoWeeksTimestamp),
|
||||
}) as ResponseDataDetailed<SearchResult>
|
||||
|
||||
const contents = contentsResponse.data.results
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ const initialUserConfig = loadState<UserConfig>('files', 'config', {
|
|||
show_mime_column: true,
|
||||
sort_favorites_first: true,
|
||||
sort_folders_first: true,
|
||||
recent_files_limit: 100,
|
||||
|
||||
show_dialog_deletion: false,
|
||||
show_dialog_file_extension: true,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export interface PathOptions {
|
|||
|
||||
// User config store
|
||||
export interface UserConfig {
|
||||
[key: string]: boolean | string | number | undefined
|
||||
[key: string]: boolean | string | undefined
|
||||
|
||||
crop_image_previews: boolean
|
||||
default_view: 'files' | 'personal'
|
||||
|
|
@ -59,7 +59,6 @@ export interface UserConfig {
|
|||
grid_view: boolean
|
||||
sort_favorites_first: boolean
|
||||
sort_folders_first: boolean
|
||||
recent_files_limit: number
|
||||
|
||||
show_files_extensions: boolean
|
||||
show_hidden: boolean
|
||||
|
|
|
|||
Loading…
Reference in a new issue