From f66ab8dae2f3d0418759f81a3a64dc9517a62449 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:17:31 +0200 Subject: Adding upstream version 1.10.2. Signed-off-by: Daniel Baumann --- .../Dashboard/Dashlet/NotificationApplyDashlet.php | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php (limited to 'library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php') diff --git a/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php b/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php new file mode 100644 index 0000000..e0b0443 --- /dev/null +++ b/library/Director/Dashboard/Dashlet/NotificationApplyDashlet.php @@ -0,0 +1,37 @@ +translate('Notifications'); + } + + public function getSummary() + { + return $this->translate( + 'Apply notifications with specific properties according to given rules.' + ) . ' ' . $this->getApplySummaryText('notification'); + } + + public function shouldBeShown() + { + return $this->getStats('notification', 'template') > 0; + } + + public function listRequiredPermissions() + { + return array('director/notifications'); + } + + public function getUrl() + { + return 'director/notifications/applyrules'; + } +} -- cgit v1.2.3