mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
perf(dashboard): Stop loading the viewer on the dashboard
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
305c3812a4
commit
0773b8744f
1 changed files with 0 additions and 7 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue