diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-06 22:13:15 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-02-07 12:10:13 +0100 |
commit | 0773b8744ffc759f2df9dbc3afce75bec8801cad (patch) | |
tree | f9f67bbca65b705a32007c9b606b1405c2b2729c /apps/dashboard | |
parent | 305c3812a4def18ea90d21031067d7eecedb092a (diff) | |
download | nextcloud-server-0773b8744ffc759f2df9dbc3afce75bec8801cad.tar.gz nextcloud-server-0773b8744ffc759f2df9dbc3afce75bec8801cad.zip |
perf(dashboard): Stop loading the viewer on the dashboard
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/dashboard')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 625881b001c..a2605e69f4c 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -30,8 +30,6 @@ declare(strict_types=1); */ namespace OCA\Dashboard\Controller; -use OCA\Files\Event\LoadSidebar; -use OCA\Viewer\Event\LoadViewer; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\OpenAPI; @@ -91,11 +89,6 @@ class DashboardController extends Controller { \OCP\Util::addStyle('dashboard', 'dashboard'); \OCP\Util::addScript('dashboard', 'main', 'theming'); - $this->eventDispatcher->dispatchTyped(new LoadSidebar()); - if (class_exists(LoadViewer::class)) { - $this->eventDispatcher->dispatchTyped(new LoadViewer()); - } - $this->eventDispatcher->dispatchTyped(new RegisterWidgetEvent($this->dashboardManager)); $systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar'); |