Skip to content

Commit

Permalink
set round item icons for user status widget
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Sep 13, 2022
1 parent ab6b96d commit 11391d0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/user_status/lib/Dashboard/UserStatusWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
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;
Expand All @@ -46,7 +48,7 @@
*
* @package OCA\UserStatus
*/
class UserStatusWidget implements IAPIWidget, IButtonWidget, IIconWidget {
class UserStatusWidget implements IAPIWidget, IIconWidget, IOptionWidget {
private IL10N $l10n;
private IDateTimeFormatter $dateTimeFormatter;
private IURLGenerator $urlGenerator;
Expand Down Expand Up @@ -199,10 +201,7 @@ public function getItems(string $userId, ?string $since = null, int $limit = 7):
}, $widgetItemsData);
}

/**
* @inheritDoc
*/
public function getWidgetButtons(string $userId): array {
return [];
public function getWidgetOptions(): WidgetOptions {
return new WidgetOptions(true);
}
}

0 comments on commit 11391d0

Please sign in to comment.