diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-07-13 10:02:29 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-08-10 19:20:22 +0300 |
commit | e7ab9f296cc2008b9608d29d83b3909f627e7629 (patch) | |
tree | bf2486ab1b1bbe9446f9a25b3d1adbfb4c40fc4b /lib/AppInfo | |
parent | 1530f48e5a2313e5e26e47c48c4d2229d1a5f2f7 (diff) |
Implement dashboard panel
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/Application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index aeb49f13c..10002803d 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -41,6 +41,7 @@ use OCA\Mail\Events\SaveDraftEvent; use OCA\Mail\Http\Middleware\ErrorMiddleware; use OCA\Mail\Http\Middleware\ProvisioningMiddleware; use OCA\Mail\Listener\AddressCollectionListener; +use OCA\Mail\Listener\DashboardPanelListener; use OCA\Mail\Listener\DeleteDraftListener; use OCA\Mail\Listener\DraftMailboxCreatorListener; use OCA\Mail\Listener\FlagRepliedMessageListener; @@ -59,6 +60,7 @@ use OCA\Mail\Service\Search\MailSearch; use OCA\Mail\Service\UserPreferenceSevice; use OCP\AppFramework\App; use OCP\AppFramework\IAppContainer; +use OCP\Dashboard\RegisterWidgetEvent; use OCP\EventDispatcher\IEventDispatcher; use OCP\User\Events\UserDeletedEvent; use OCP\Util; @@ -115,5 +117,6 @@ class Application extends App { $dispatcher->addServiceListener(SaveDraftEvent::class, DraftMailboxCreatorListener::class); $dispatcher->addServiceListener(SynchronizationEvent::class, AccountSynchronizedThreadUpdaterListener::class); $dispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedListener::class); + $dispatcher->addServiceListener(RegisterWidgetEvent::class, DashboardPanelListener::class); } } |