feat(route-ui): add VPN details and conditional card actions to route cards

This commit is contained in:
2026-04-02 21:16:01 +00:00
parent 35ffde9253
commit cf247117d4
4 changed files with 162 additions and 1 deletions

View File

@@ -76,6 +76,9 @@ export class SzRouteListView extends DeesElement {
@property({ type: Array })
public accessor routes: IRouteConfig[] = [];
@property({ attribute: false })
public accessor showActionsFilter: ((route: IRouteConfig) => boolean) | null = null;
@state()
private accessor searchQuery: string = '';
@@ -299,6 +302,7 @@ export class SzRouteListView extends DeesElement {
(route) => html`
<sz-route-card
.route=${route}
.showActions=${this.showActionsFilter?.(route) ?? false}
@click=${() => this.handleRouteClick(route)}
></sz-route-card>
`