diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue index e3db205eef2bf..a40f482957802 100644 --- a/apps/files/src/views/FilesList.vue +++ b/apps/files/src/views/FilesList.vue @@ -63,7 +63,7 @@ - true, /** - * Enable use of old unified search + * Disable features that are do respect accessibility standards yet. * - * Defaults to ``false`` + * Defaults to ``true`` */ -'unified_search.enabled' => false, +'enable_non-accessible_features' => true, ]; diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index 057caaaf2fea4..820af8b82de10 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -179,7 +179,8 @@ public function getConfig(): string { 'sharing.maxAutocompleteResults' => max(0, $this->config->getSystemValueInt('sharing.maxAutocompleteResults', Constants::SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT)), 'sharing.minSearchStringLength' => $this->config->getSystemValueInt('sharing.minSearchStringLength', 0), 'version' => implode('.', Util::getVersion()), - 'versionstring' => \OC_Util::getVersionString() + 'versionstring' => \OC_Util::getVersionString(), + 'enable_non-accessible_features' => $this->config->getSystemValue('enable_non-accessible_features', true), ]; $array = [ diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 13ac3c5ef482f..5cb1b49b9deca 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -108,8 +108,8 @@ public function __construct($renderAs, $appId = '') { $this->initialState->provideInitialState('core', 'active-app', $this->navigationManager->getActiveEntry()); $this->initialState->provideInitialState('core', 'apps', $this->navigationManager->getAll()); - - if ($this->config->getSystemValueBool('unified_search.enabled', false)) { + + if (!$this->config->getSystemValueBool('enable_non-accessible_features', true)) { $this->initialState->provideInitialState('unified-search', 'limit-default', (int)$this->config->getAppValue('core', 'unified-search.limit-default', (string)SearchQuery::LIMIT_DEFAULT)); $this->initialState->provideInitialState('unified-search', 'min-search-length', (int)$this->config->getAppValue('core', 'unified-search.min-search-length', (string)1)); $this->initialState->provideInitialState('unified-search', 'live-search', $this->config->getAppValue('core', 'unified-search.live-search', 'yes') === 'yes');