summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorSukanya Pandey <sukapan1@in.ibm.com>2020-12-23 10:48:55 +0300
committerDerick Montague <derick.montague@ibm.com>2021-03-23 03:02:54 +0300
commit47b047c7320aada2ceba3c774287462e4cba0089 (patch)
tree473f2f5ca8cc86a5398f8237068eecbe62d1d3ba /src/store
parent492875622b39cb2cf04bbb9248b6ed0c52ced2df (diff)
downloadwebui-vue-47b047c7320aada2ceba3c774287462e4cba0089.tar.xz
Add event log details
- Add ability to expand and collapse table rows to show event log entry details - Add the following properties to display in the UI, Name, Modified date Change-Id: I3c90ce301878947e402eb87ca135dba0c47e84d5 Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/modules/Health/EventLogStore.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/store/modules/Health/EventLogStore.js b/src/store/modules/Health/EventLogStore.js
index cdfb358a..eaec7490 100644
--- a/src/store/modules/Health/EventLogStore.js
+++ b/src/store/modules/Health/EventLogStore.js
@@ -43,13 +43,23 @@ const EventLogStore = {
.get('/redfish/v1/Systems/system/LogServices/EventLog/Entries')
.then(({ data: { Members = [] } = {} }) => {
const eventLogs = Members.map((log) => {
- const { Id, Severity, Created, EntryType, Message } = log;
+ const {
+ Id,
+ Severity,
+ Created,
+ EntryType,
+ Message,
+ Name,
+ Modified,
+ } = log;
return {
id: Id,
severity: Severity,
date: new Date(Created),
type: EntryType,
description: Message,
+ name: Name,
+ modifiedDate: new Date(Modified),
uri: log['@odata.id'],
};
});