From f3da84d3eee4fecd253566c456c80e3f03e94882 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Mon, 4 Sep 2023 13:38:41 +0100 Subject: [PATCH] Redirect namespace links in masthead to namespace list with filter - For resources that are namespaced, the masthead shows a link to the namespace - In dashboard world that would be the detail page of a namespace resource - In epinio world we have no namespace detail page, so take user to namespace list with query filter to show it - This could result in false positives but is better than a dead end - namespaces `a`, `aa` and `aaa` would all show up if user went to view namespace with name `a` --- dashboard/pkg/epinio/list/namespaces.vue | 1 + .../pkg/epinio/models/epinio-namespaced-resource.js | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dashboard/pkg/epinio/list/namespaces.vue b/dashboard/pkg/epinio/list/namespaces.vue index f4fd67f..36cf703 100644 --- a/dashboard/pkg/epinio/list/namespaces.vue +++ b/dashboard/pkg/epinio/list/namespaces.vue @@ -151,6 +151,7 @@ export default { :groupable="false" :schema="schema" key-field="_key" + :useQueryParamsForSimpleFiltering="true" v-on="$listeners" />