From 787605187ccf98b9916e078f9b0a3f9faa608807 Mon Sep 17 00:00:00 2001 From: Joel Takvorian Date: Fri, 3 Mar 2023 16:52:28 +0100 Subject: [PATCH] NETOBSERV-901 Declare Observe section for project admins --- web/console-extensions.json | 21 ++++++++++++++++++++ web/locales/en/plugin__netobserv-plugin.json | 1 + web/src/i18n.ts | 1 + 3 files changed, 23 insertions(+) diff --git a/web/console-extensions.json b/web/console-extensions.json index 227ffa213..874cc73b7 100644 --- a/web/console-extensions.json +++ b/web/console-extensions.json @@ -9,6 +9,27 @@ "href": "/netflow-traffic" } }, + { + "type": "console.navigation/section", + "properties": { + "perspective": "admin", + "id": "observe-projectadmin", + "insertBefore": ["compute", "usermanagement"], + "name": "%plugin__netobserv-plugin~Observe%" + }, + "flags": { "disallowed": ["CAN_LIST_NS"] } + }, + { + "type": "console.navigation/href", + "properties": { + "id": "netflow-traffic-link-projectadmin", + "perspective": "admin", + "section": "observe-netobserv", + "name": "%plugin__netobserv-plugin~Network Traffic%", + "href": "/netflow-traffic" + }, + "flags": { "disallowed": ["CAN_LIST_NS"] } + }, { "type": "console.page/route", "properties": { diff --git a/web/locales/en/plugin__netobserv-plugin.json b/web/locales/en/plugin__netobserv-plugin.json index 0d0a57772..2f3712b38 100644 --- a/web/locales/en/plugin__netobserv-plugin.json +++ b/web/locales/en/plugin__netobserv-plugin.json @@ -261,6 +261,7 @@ "Results": "Results", "Query summary": "Query summary", "Find in view": "Find in view", + "Observe": "Observe", "External": "External", "Unknown": "Unknown", "Names": "Names", diff --git a/web/src/i18n.ts b/web/src/i18n.ts index c3823e248..5f1b97b94 100644 --- a/web/src/i18n.ts +++ b/web/src/i18n.ts @@ -2,3 +2,4 @@ // labels declared in console-extensions.json are added to the message catalog. // t('plugin__netobserv-plugin~Network Traffic') +// t('plugin__netobserv-plugin~Observe')