From ba63b3504f1a92033a7bb9575ea84d80e10fb541 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 29 Jan 2026 15:11:16 +0100 Subject: [PATCH] Refactor SaleSection component: Introduce methods section to organize component logic, enhancing readability and maintainability. This change improves the structure of the component by clearly separating computed properties and methods. --- frontend/src/components/falukant/SaleSection.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/falukant/SaleSection.vue b/frontend/src/components/falukant/SaleSection.vue index 97728c6..83dab7c 100644 --- a/frontend/src/components/falukant/SaleSection.vue +++ b/frontend/src/components/falukant/SaleSection.vue @@ -251,6 +251,8 @@ return new Date(a.eta).getTime() - new Date(b.eta).getTime(); }); }, + }, + methods: { speedLabel(value) { if (value == null) return this.$t('falukant.branch.transport.speed.unknown') || '—'; if (typeof value === 'object') { @@ -264,7 +266,6 @@ const translated = this.$t(tKey); return (!translated || translated === tKey) ? key : translated; }, - }, async mounted() { await this.loadInventory(); await this.loadTransports();