diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-09-08 11:48:00 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-09-15 18:06:21 +0200 |
commit | 845149bb7ccba5f0de37d145c6b7d13a7532e68b (patch) | |
tree | 4d3983026685073123b8f4a16f33f56ba5a5af12 /apps/dashboard | |
parent | a3912e264a26d5ab3d042e6b47e7c75d2b123ada (diff) | |
download | nextcloud-server-845149bb7ccba5f0de37d145c6b7d13a7532e68b.tar.gz nextcloud-server-845149bb7ccba5f0de37d145c6b7d13a7532e68b.zip |
add IItemOptionWidget to define some item-related parameters, only getItemIconsRound() for now
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/dashboard')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardApiController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index 9f9872dc916..b0859a088c6 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -30,6 +30,7 @@ use OCP\AppFramework\OCSController; use OCP\AppFramework\Http\DataResponse; use OCP\Dashboard\IButtonWidget; use OCP\Dashboard\IIconWidget; +use OCP\Dashboard\IItemOptionWidget; use OCP\Dashboard\IManager; use OCP\Dashboard\IWidget; use OCP\Dashboard\Model\WidgetButton; @@ -112,6 +113,7 @@ class DashboardApiController extends OCSController { 'icon_class' => $widget->getIconClass(), 'icon_url' => ($widget instanceof IIconWidget) ? $widget->getIconUrl() : '', 'widget_url' => $widget->getUrl(), + 'item_icons_round' => ($widget instanceof IItemOptionWidget) ? $widget->getItemIconsRound() : false, ]; if ($widget instanceof IButtonWidget) { $data += [ |