From bbde7681520ded0dee0b999d69e5b50789a7ac15 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 14 Jan 2025 17:55:10 +0100 Subject: fix(dashboard): Correctly handle non-rounded icons for dashboard widgets Signed-off-by: Ferdinand Thiessen --- apps/dashboard/src/DashboardApp.vue | 4 +- .../src/components/ApiDashboardWidget.vue | 29 +++++---- .../src/components/ApiDashboardWidgetItem.vue | 68 ++++++++++++++++++++++ 3 files changed, 84 insertions(+), 17 deletions(-) create mode 100644 apps/dashboard/src/components/ApiDashboardWidgetItem.vue (limited to 'apps/dashboard/src') diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 864571842cc..055f1e68cb6 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -461,8 +461,8 @@ export default { } }, async fetchApiWidgets() { - const response = await axios.get(generateOcsUrl('/apps/dashboard/api/v1/widgets')) - this.apiWidgets = response.data.ocs.data + const { data } = await axios.get(generateOcsUrl('/apps/dashboard/api/v1/widgets')) + this.apiWidgets = data.ocs.data }, async fetchApiWidgetItems(widgetIds, merge = false) { try { diff --git a/apps/dashboard/src/components/ApiDashboardWidget.vue b/apps/dashboard/src/components/ApiDashboardWidget.vue index e82b977b041..22834abadd5 100644 --- a/apps/dashboard/src/components/ApiDashboardWidget.vue +++ b/apps/dashboard/src/components/ApiDashboardWidget.vue @@ -10,16 +10,7 @@ :show-items-and-empty-content="!!halfEmptyContentMessage" :half-empty-content-message="halfEmptyContentMessage">