diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2023-12-22 00:20:14 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 00:20:14 +0500 |
commit | 344c0534369918d52382860c4724b149c63622e4 (patch) | |
tree | 313800a64e34386f5c471b60babd04948ea662ae /apps | |
parent | 45a5b3679511b3f14b764374b18d731ffcb57d9e (diff) | |
parent | a6d775836f40af71fcd5a75ea1066657cbfac2ed (diff) | |
download | nextcloud-server-344c0534369918d52382860c4724b149c63622e4.tar.gz nextcloud-server-344c0534369918d52382860c4724b149c63622e4.zip |
Merge pull request #42425 from nextcloud/backport/42419/stable28
[stable28] fix(files): Adjust ID for skip content buttons
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 4 | ||||
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 2 |
2 files changed, 5 insertions, 1 deletions
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(); |