Skip to content

Commit

Permalink
Merge pull request #42425 from nextcloud/backport/42419/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(files): Adjust ID for skip content buttons
  • Loading branch information
ShGKme authored Dec 21, 2023
2 parents 45a5b36 + a6d7758 commit 344c053
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 344c053

Please sign in to comment.