From 1e6cae5fe3ad934117a185bee68e2235aee2d808 Mon Sep 17 00:00:00 2001 From: Matteo Di Lorenzi Date: Thu, 29 Jan 2026 16:22:39 +0100 Subject: [PATCH] fix(routes): show system routes table even if no custom routes are defined --- .../standalone/routes/RoutesContent.vue | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/src/components/standalone/routes/RoutesContent.vue b/src/components/standalone/routes/RoutesContent.vue index c3b1a57ea..3e22899d6 100644 --- a/src/components/standalone/routes/RoutesContent.vue +++ b/src/components/standalone/routes/RoutesContent.vue @@ -27,11 +27,14 @@ import { import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' import { faCirclePlus, + faCircleInfo, faEarthAmerica, faLocationDot, faCircleCheck, faCircleXmark, - faTrash + faTrash, + faTable, + faPenToSquare } from '@fortawesome/free-solid-svg-icons' import { useUciPendingChangesStore } from '@/stores/standalone/uciPendingChanges' import { ubusCall } from '@/lib/standalone/ubus' @@ -135,6 +138,7 @@ async function loadRoutes() { * get main table */ async function loadMainTable() { + loading.value = true try { const res = await ubusCall('ns.routes', 'main-table', { protocol: props.protocol @@ -146,6 +150,8 @@ async function loadMainTable() { } catch (err: any) { error.value.notificationTitle = t('error.cannot_load_routes') error.value.notificationDescription = t(getAxiosErrorMessage(err)) + } finally { + loading.value = false } } @@ -201,23 +207,10 @@ function scrollToMainTable() {