Skip to content

Commit 39ba1b5

Browse files
skjnldsvnextcloud-command
authored andcommitted
fix(setup): hide config section if autoconfig is valid
Fix #56160 Assisted-by: ClaudeCode:claude-sonnet-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
1 parent d4df2d2 commit 39ba1b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/src/views/WebInstaller.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ describe('Setup page with autoconfig', () => {
368368

369369
// Database and storage section is hidden as already set in autoconfig
370370
await expect(component.findByText('Storage & database')).resolves.not.toThrow()
371-
expect(component.getByText('Storage & database').closest('details')!.getAttribute('hidden')).toBeNull()
371+
expect(component.getByText('Storage & database').closest('details')!.style.display).toBe('none')
372372
})
373373
})
374374

‎core/src/views/WebInstaller.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</fieldset>
6767

6868
<!-- Autoconfig toggle -->
69-
<details :open="!isValidAutoconfig" data-cy-setup-form-advanced-config>
69+
<details v-show="!isValidAutoconfig" data-cy-setup-form-advanced-config>
7070
<summary>{{ t('core', 'Storage & database') }}</summary>
7171

7272
<!-- Data folder -->

0 commit comments

Comments
 (0)