From a6d775836f40af71fcd5a75ea1066657cbfac2ed Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 21 Dec 2023 11:34:02 +0100 Subject: [PATCH] fix(files): Adjust ID for skip content buttons Signed-off-by: Ferdinand Thiessen --- apps/files/lib/Controller/ViewController.php | 4 +++- apps/files/tests/Controller/ViewControllerTest.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index ca9ac80b9e28b..be5069b7f612d 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -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( diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 1f8a609106fc2..8b6fc5a05a949 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -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();