Skip to content

Commit

Permalink
fix(files): Adjust ID for skip content buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux authored and backportbot-nextcloud[bot] committed Dec 21, 2023
1 parent fce1c18 commit e5cd6b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/files/lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators());

$params = [
'fileNotFound' => $fileNotFound ? 1 : 0
'fileNotFound' => $fileNotFound ? 1 : 0,
'id-app-content' => '#app-content-vue',
'id-app-navigation' => '#app-navigation-vue',
];

$response = new TemplateResponse(
Expand Down
2 changes: 2 additions & 0 deletions apps/files/tests/Controller/ViewControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ public function testIndexWithRegularBrowser() {
'index',
[
'fileNotFound' => 0,
'id-app-content' => '#app-content-vue',
'id-app-navigation' => '#app-navigation-vue',
]
);
$policy = new Http\ContentSecurityPolicy();
Expand Down

0 comments on commit e5cd6b9

Please sign in to comment.