Merge pull request #56794 from nextcloud/feat/hide-developer-docs-conditionally

docs(settings): Removing the developerDocsUrl
This commit is contained in:
Côme Chilliet 2026-01-20 14:07:31 +01:00 committed by GitHub
commit 433e3da4d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 14 deletions

View file

@ -92,7 +92,6 @@ class AppSettingsController extends Controller {
$this->initialState->provideInitialState('appstoreEnabled', $this->config->getSystemValueBool('appstoreenabled', true));
$this->initialState->provideInitialState('appstoreBundles', $this->getBundles());
$this->initialState->provideInitialState('appstoreDeveloperDocs', $this->urlGenerator->linkToDocs('developer-manual'));
$this->initialState->provideInitialState('appstoreUpdateCount', count($this->getAppsWithUpdates()));
if ($this->appManager->isEnabledForAnyone('app_api')) {

View file

@ -100,10 +100,6 @@
</NcAppNavigationItem>
</template>
<NcAppNavigationItem
id="app-developer-docs"
:name="t('settings', 'Developer documentation ↗')"
:href="developerDocsUrl" />
</template>
</NcAppNavigation>
</template>
@ -123,7 +119,6 @@ import APPSTORE_CATEGORY_ICONS from '../constants/AppstoreCategoryIcons.ts'
import { useAppsStore } from '../store/apps-store.ts'
const appstoreEnabled = loadState<boolean>('settings', 'appstoreEnabled', true)
const developerDocsUrl = loadState<string>('settings', 'appstoreDeveloperDocs', '')
const store = useAppsStore()
const categories = computed(() => store.categories)

View file

@ -170,7 +170,7 @@ class AppSettingsControllerTest extends TestCase {
->with('core_apps');
$this->initialState
->expects($this->exactly(4))
->expects($this->exactly(3))
->method('provideInitialState');
$policy = new ContentSecurityPolicy();
@ -203,7 +203,7 @@ class AppSettingsControllerTest extends TestCase {
->with('core_apps');
$this->initialState
->expects($this->exactly(4))
->expects($this->exactly(3))
->method('provideInitialState');
$policy = new ContentSecurityPolicy();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long