From 8dfaebba00684b08df182f81c0ba7989be7eced3 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Wed, 13 May 2026 15:35:21 +0200 Subject: [PATCH] Add unit test for user vehicle actions visibility and enhancements for department 75 loading UI, default department handling, and translations. --- .../displays/user/vehicles/vehiclesTable.vue | 1 + src/components/session/token/SessionUser.vue | 5 + .../superUser/modules/Economic/Config.vue | 8 + src/i18n/locales/da.json | 574 +++++++++--------- src/i18n/locales/no.json | 2 + src/i18n/locales/sv.json | 2 + .../daily-report/DepartmentWeather.vue | 229 ++++++- .../InvoicingBillingPeriodStatistics.vue | 46 +- .../configuration/ConfigurationEconomic.vue | 33 + .../unit/user-vehicles-table-actions.spec.js | 12 + 10 files changed, 608 insertions(+), 304 deletions(-) create mode 100644 tests/unit/user-vehicles-table-actions.spec.js diff --git a/src/components/displays/user/vehicles/vehiclesTable.vue b/src/components/displays/user/vehicles/vehiclesTable.vue index 39926680..b45a643b 100644 --- a/src/components/displays/user/vehicles/vehiclesTable.vue +++ b/src/components/displays/user/vehicles/vehiclesTable.vue @@ -240,6 +240,7 @@ const getProductOptionsLabel = (vehicle) => { v-if="!props.compact" :user_id="object.user_id" :reg_1="object.reg" + :displayActionsDirectly="true" >