Skip to content

Commit bc6641a

Browse files
feat(files): add configurations for file grouping
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
1 parent 04d6aa0 commit bc6641a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ public function index($dir = '', $view = '', $fileid = null) {
221221
$this->initialState->provideInitialState('config', $this->userConfig->getConfigs());
222222
$this->initialState->provideInitialState('viewConfigs', $this->viewConfig->getConfigs());
223223
$this->initialState->provideInitialState('recent_limit', $this->appConfig->getAppValueInt('recent_limit', 100));
224+
// Not yet consumed by the frontend, provided for future implementation
225+
$this->initialState->provideInitialState('group_recent_files', $this->appConfig->getAppValueBool('group_recent_files', false));
226+
$this->initialState->provideInitialState('recent_files_group_mime_types', $this->appConfig->getAppValueArray('recent_files_group_mime_types', []));
227+
$this->initialState->provideInitialState('recent_files_group_timespan_minutes', $this->appConfig->getAppValueInt('recent_files_group_timespan_minutes', 2));
224228

225229
// File sorting user config
226230
$filesSortingConfig = json_decode($this->config->getUserValue($userId, 'files', 'files_sorting_configs', '{}'), true);

0 commit comments

Comments
 (0)