Skip to content

Commit 6ffae37

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

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
@@ -174,6 +174,10 @@ public function index($dir = '', $view = '', $fileid = null) {
174174
$this->initialState->provideInitialState('config', $this->userConfig->getConfigs());
175175
$this->initialState->provideInitialState('viewConfigs', $this->viewConfig->getConfigs());
176176
$this->initialState->provideInitialState('recent_limit', $this->appConfig->getAppValueInt('recent_limit', 100));
177+
// Not yet consumed by the frontend, provided for future implementation
178+
$this->initialState->provideInitialState('group_recent_files', $this->appConfig->getAppValueBool('group_recent_files', false));
179+
$this->initialState->provideInitialState('recent_files_group_mime_types', $this->appConfig->getAppValueArray('recent_files_group_mime_types', []));
180+
$this->initialState->provideInitialState('recent_files_group_timespan_minutes', $this->appConfig->getAppValueInt('recent_files_group_timespan_minutes', 2));
177181

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

0 commit comments

Comments
 (0)