diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 9c1ab7813f297..ebd6fdd5ae7cf 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -15,6 +15,7 @@ use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\Http\TemplateResponse; use OCP\AppFramework\Services\IInitialState; +use OCP\Dashboard\IIconWidget; use OCP\Dashboard\IManager; use OCP\Dashboard\IWidget; use OCP\EventDispatcher\IEventDispatcher; @@ -54,6 +55,7 @@ public function index(): TemplateResponse { 'id' => $widget->getId(), 'title' => $widget->getTitle(), 'iconClass' => $widget->getIconClass(), + 'iconUrl' => $widget instanceof IIconWidget ? $widget->getIconUrl() : '', 'url' => $widget->getUrl() ]; }, $this->dashboardManager->getWidgets()); diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 828b8e9d4f361..aa7f1c04360a4 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -24,7 +24,12 @@ class="panel">
\n\t\t\t\t\t\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('dashboard', 'Weather data from Met.no') }},\n\t\t\t\t\t\t{{ t('dashboard', 'geocoding with Nominatim') }},\n\t\t\t\t\t\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('dashboard', 'Weather data from Met.no') }},\n\t\t\t\t\t\t{{ t('dashboard', 'geocoding with Nominatim') }},\n\t\t\t\t\t\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\n\t\t\t\t\t
\n\t\t\t\t\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'Weather data from Met.no') }},\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'geocoding with Nominatim') }},\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\n\t\t\t\t\t\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('dashboard', 'Weather data from Met.no') }},\n\t\t\t\t\t\t{{ t('dashboard', 'geocoding with Nominatim') }},\n\t\t\t\t\t\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\n\t\t\t\t\t
\n\t\t\t\t\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'Weather data from Met.no') }},\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'geocoding with Nominatim') }},\\n\\t\\t\\t\\t\\t\\t{{ t('dashboard', 'elevation data from OpenTopoData') }}.\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t