[RFC] add Dumps page to navigation
The functionality of initiating and displaying dumps is not enabled by
default in bmcweb but it's used by at least Facebook, Fii and IBM. While
IBM has their own overview page and router code which makes it
accessible the others do not.
I do not know what the policy should be about exposing features like
that, please comment. Guess ideally webui should discover available
features on startup and add to the menu dynamically, any takers?
Change-Id: I9c85ecaba009547c69166c5cbaba62a005d75f48
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
diff --git a/src/components/AppNavigation/AppNavigationMixin.js b/src/components/AppNavigation/AppNavigationMixin.js
index c00e984..89c1508 100644
--- a/src/components/AppNavigation/AppNavigationMixin.js
+++ b/src/components/AppNavigation/AppNavigationMixin.js
@@ -49,6 +49,11 @@
label: i18n.global.t('appNavigation.postCodeLogs'),
route: '/logs/post-code-logs',
},
+ {
+ id: 'dumps',
+ label: i18n.global.t('appNavigation.dumps'),
+ route: '/logs/dumps',
+ },
],
},
{
diff --git a/src/router/routes.js b/src/router/routes.js
index d9e799a..f821ce1 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -32,6 +32,8 @@
import SnmpAlerts from '@/views/Settings/SnmpAlerts';
import i18n from '@/i18n';
+import Dumps from '@/views/Logs/Dumps';
+
const roles = {
administrator: 'Administrator',
operator: 'Operator',
@@ -120,6 +122,14 @@
},
},
{
+ path: '/logs/dumps',
+ name: 'dumps',
+ component: Dumps,
+ meta: {
+ title: i18n.global.t('appPageTitle.dumps'),
+ },
+ },
+ {
path: '/logs/post-code-logs',
name: 'post-code-logs',
component: PostCodeLogs,