diff --git a/changelog.md b/changelog.md index cbf6e21..b8fbfda 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-04-13 - 13.17.3 - fix(ops-view-routes) +sync route filter toggle selection via component changeSubject + +- Replaces the inline change handler on the route filter toggle with a subscription to the component's changeSubject in firstUpdated. +- Ensures switching between user and system routes updates the view reliably and is cleaned up through existing rxSubscriptions management. + ## 2026-04-13 - 13.17.2 - fix(monitoring) exclude unconfigured routes from domain activity aggregation diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 03efc38..527200c 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/dcrouter', - version: '13.17.2', + version: '13.17.3', description: 'A multifaceted routing service handling mail and SMS delivery functions.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 03efc38..527200c 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/dcrouter', - version: '13.17.2', + version: '13.17.3', description: 'A multifaceted routing service handling mail and SMS delivery functions.' } diff --git a/ts_web/elements/network/ops-view-routes.ts b/ts_web/elements/network/ops-view-routes.ts index 6d5e849..05c1477 100644 --- a/ts_web/elements/network/ops-view-routes.ts +++ b/ts_web/elements/network/ops-view-routes.ts @@ -227,10 +227,10 @@ export class OpsViewRoutes extends DeesElement { > { this.routeFilter = e.target.value || e.target.selectedOption; }} > ${warnings.length > 0 @@ -677,5 +677,13 @@ export class OpsViewRoutes extends DeesElement { async firstUpdated() { await appstate.routeManagementStatePart.dispatchAction(appstate.fetchMergedRoutesAction, null); + + const toggle = this.shadowRoot!.querySelector('.routeFilterToggle') as any; + if (toggle) { + const sub = toggle.changeSubject.subscribe(() => { + this.routeFilter = toggle.selectedOption; + }); + this.rxSubscriptions.push(sub); + } } }