From 9ba26ee326887428f3b2b61edfac4109305a3db2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 13 Sep 2022 13:54:42 +0200 Subject: set round item icons for user status widget Signed-off-by: Robin Appelman --- apps/user_status/lib/Dashboard/UserStatusWidget.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'apps/user_status') diff --git a/apps/user_status/lib/Dashboard/UserStatusWidget.php b/apps/user_status/lib/Dashboard/UserStatusWidget.php index 0e2ecbe54bf..5a89040dfa5 100644 --- a/apps/user_status/lib/Dashboard/UserStatusWidget.php +++ b/apps/user_status/lib/Dashboard/UserStatusWidget.php @@ -32,7 +32,9 @@ use OCP\AppFramework\Services\IInitialState; use OCP\Dashboard\IAPIWidget; use OCP\Dashboard\IButtonWidget; use OCP\Dashboard\IIconWidget; +use OCP\Dashboard\IOptionWidget; use OCP\Dashboard\Model\WidgetItem; +use OCP\Dashboard\Model\WidgetOptions; use OCP\IDateTimeFormatter; use OCP\IL10N; use OCP\IURLGenerator; @@ -46,7 +48,7 @@ use OCP\Util; * * @package OCA\UserStatus */ -class UserStatusWidget implements IAPIWidget, IButtonWidget, IIconWidget { +class UserStatusWidget implements IAPIWidget, IIconWidget, IOptionWidget { private IL10N $l10n; private IDateTimeFormatter $dateTimeFormatter; private IURLGenerator $urlGenerator; @@ -199,10 +201,7 @@ class UserStatusWidget implements IAPIWidget, IButtonWidget, IIconWidget { }, $widgetItemsData); } - /** - * @inheritDoc - */ - public function getWidgetButtons(string $userId): array { - return []; + public function getWidgetOptions(): WidgetOptions { + return new WidgetOptions(true); } } -- cgit v1.2.3