Skip to content

Commit

Permalink
Merge pull request #43407 from nextcloud/fix/dont-load-viewer-on-dash…
Browse files Browse the repository at this point in the history
…board

perf(dashboard): Stop loading the viewer on the dashboard
  • Loading branch information
st3iny authored Feb 7, 2024
2 parents ed3a1e7 + 0773b87 commit 0171812
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/dashboard/lib/Controller/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
*/
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;
Expand Down Expand Up @@ -91,11 +89,6 @@ public function index(): TemplateResponse {
\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');
Expand Down

0 comments on commit 0171812

Please sign in to comment.