diff options
author | Robin Appelman <robin@icewind.nl> | 2022-09-13 13:54:42 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-15 18:06:22 +0200 |
commit | 9ba26ee326887428f3b2b61edfac4109305a3db2 (patch) | |
tree | e240ba4e059068b47ebe1a89ab68e1858506ad4b | |
parent | 500ba958f3ddfb203fae5638069e6631e054f084 (diff) | |
download | nextcloud-server-9ba26ee326887428f3b2b61edfac4109305a3db2.tar.gz nextcloud-server-9ba26ee326887428f3b2b61edfac4109305a3db2.zip |
set round item icons for user status widget
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/user_status/lib/Dashboard/UserStatusWidget.php | 11 |
1 files changed, 5 insertions, 6 deletions
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); } } |