Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2020-11-24 18:06:19 +0300
committerRichard Steinmetz <richard@steinmetz.cloud>2020-11-24 18:35:06 +0300
commita77aed871a75f625bc2830206ca88176f163c791 (patch)
treee9fe1cd62492093aea77708046ae63292b5b2d4b /lib/Listener
parent9669b1bea81a6feb143a27aba85ff5c19d40a54d (diff)
Add unread mail dashboard widget
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'lib/Listener')
-rw-r--r--lib/Listener/DashboardPanelListener.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Listener/DashboardPanelListener.php b/lib/Listener/DashboardPanelListener.php
index e5917829b..dc7ec1d23 100644
--- a/lib/Listener/DashboardPanelListener.php
+++ b/lib/Listener/DashboardPanelListener.php
@@ -6,6 +6,7 @@ declare(strict_types=1);
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
+ * @author Richard Steinmetz <richard@steinmetz.cloud>
*
* @license GNU AGPL version 3 or any later version
*
@@ -28,7 +29,8 @@ declare(strict_types=1);
namespace OCA\Mail\Listener;
-use OCA\Mail\Dashboard\MailWidget;
+use OCA\Mail\Dashboard\ImportantMailWidget;
+use OCA\Mail\Dashboard\UnreadMailWidget;
use OCP\Dashboard\RegisterWidgetEvent;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
@@ -43,6 +45,7 @@ class DashboardPanelListener implements IEventListener {
return;
}
- $event->registerWidget(MailWidget::class);
+ $event->registerWidget(ImportantMailWidget::class);
+ $event->registerWidget(UnreadMailWidget::class);
}
}