Skip to content

Commit e5cd6b9

Browse files
susnuxbackportbot-nextcloud[bot]
authored andcommitted
fix(files): Adjust ID for skip content buttons
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent fce1c18 commit e5cd6b9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
280280
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators());
281281

282282
$params = [
283-
'fileNotFound' => $fileNotFound ? 1 : 0
283+
'fileNotFound' => $fileNotFound ? 1 : 0,
284+
'id-app-content' => '#app-content-vue',
285+
'id-app-navigation' => '#app-navigation-vue',
284286
];
285287

286288
$response = new TemplateResponse(

apps/files/tests/Controller/ViewControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ public function testIndexWithRegularBrowser() {
186186
'index',
187187
[
188188
'fileNotFound' => 0,
189+
'id-app-content' => '#app-content-vue',
190+
'id-app-navigation' => '#app-navigation-vue',
189191
]
190192
);
191193
$policy = new Http\ContentSecurityPolicy();

0 commit comments

Comments
 (0)