diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2021-01-14 13:31:15 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-28 12:00:18 +0100 |
commit | 78e114ed72a01e3c37fe0e955ffe6ef649782575 (patch) | |
tree | c5e01ff4546b780dbb8a597e642b877fa01ab48d /apps/files/lib | |
parent | 497440477492b6e7df8ca1eb6c79eb7100a2fe24 (diff) | |
download | nextcloud-server-78e114ed72a01e3c37fe0e955ffe6ef649782575.tar.gz nextcloud-server-78e114ed72a01e3c37fe0e955ffe6ef649782575.zip |
Add template picker
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Controller/TemplateController.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 1 | ||||
-rw-r--r-- | apps/files/lib/Event/LoadAdditionalScriptsEvent.php | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/TemplateController.php b/apps/files/lib/Controller/TemplateController.php index 69d2790df1a..08a324a46ec 100644 --- a/apps/files/lib/Controller/TemplateController.php +++ b/apps/files/lib/Controller/TemplateController.php @@ -1,5 +1,5 @@ <?php -/* +/** * @copyright Copyright (c) 2021 Julius Härtl <jus@bitgrid.net> * * @author Julius Härtl <jus@bitgrid.net> diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 124363f07bb..846ec14c4aa 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -190,6 +190,7 @@ class ViewController extends Controller { // Load the files we need \OCP\Util::addStyle('files', 'merged'); \OCP\Util::addScript('files', 'merged-index'); + \OCP\Util::addScript('files', 'dist/templates'); // mostly for the home storage's free space // FIXME: Make non static diff --git a/apps/files/lib/Event/LoadAdditionalScriptsEvent.php b/apps/files/lib/Event/LoadAdditionalScriptsEvent.php index de222ccc55a..e5943c6f895 100644 --- a/apps/files/lib/Event/LoadAdditionalScriptsEvent.php +++ b/apps/files/lib/Event/LoadAdditionalScriptsEvent.php @@ -30,7 +30,8 @@ namespace OCA\Files\Event; use OCP\EventDispatcher\Event; /** - * This event is triggered when the files app is rendered. It canb e used to add additional scripts to the files app. + * This event is triggered when the files app is rendered. + * It can be used to add additional scripts to the files app. * * @since 17.0.0 */ |