From: Ferdinand Thiessen Date: Thu, 21 Dec 2023 10:34:02 +0000 (+0100) Subject: fix(files): Adjust ID for skip content buttons X-Git-Tag: v29.0.0beta1~603^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F42419%2Fhead;p=nextcloud-server.git fix(files): Adjust ID for skip content buttons Signed-off-by: Ferdinand Thiessen --- diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index ca9ac80b9e2..be5069b7f61 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -280,7 +280,9 @@ class ViewController extends Controller { $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 1f8a609106f..8b6fc5a05a9 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -186,6 +186,8 @@ class ViewControllerTest extends TestCase { 'index', [ 'fileNotFound' => 0, + 'id-app-content' => '#app-content-vue', + 'id-app-navigation' => '#app-navigation-vue', ] ); $policy = new Http\ContentSecurityPolicy();