From 3f9f8b3e2d2708e08207aa565e665bf79fab7793 Mon Sep 17 00:00:00 2001 From: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com> Date: Sun, 21 Nov 2021 17:06:42 +0000 Subject: [PATCH] New: Time column is first column on events page --- frontend/src/Store/Actions/systemActions.js | 14 ++++++------- frontend/src/System/Events/LogsTableRow.js | 22 ++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/frontend/src/Store/Actions/systemActions.js b/frontend/src/Store/Actions/systemActions.js index 6e007c853..3ffd947d6 100644 --- a/frontend/src/Store/Actions/systemActions.js +++ b/frontend/src/Store/Actions/systemActions.js @@ -86,6 +86,13 @@ export const defaultState = { isVisible: true, isModifiable: false }, + { + name: 'time', + label: 'Time', + isSortable: true, + isVisible: true, + isModifiable: false + }, { name: 'logger', label: 'Component', @@ -99,13 +106,6 @@ export const defaultState = { isVisible: true, isModifiable: false }, - { - name: 'time', - label: 'Time', - isSortable: true, - isVisible: true, - isModifiable: false - }, { name: 'actions', columnLabel: 'Actions', diff --git a/frontend/src/System/Events/LogsTableRow.js b/frontend/src/System/Events/LogsTableRow.js index 390769727..ed03838fd 100644 --- a/frontend/src/System/Events/LogsTableRow.js +++ b/frontend/src/System/Events/LogsTableRow.js @@ -58,9 +58,9 @@ class LogsTableRow extends Component { render() { const { level, + time, logger, message, - time, exception, columns } = this.props; @@ -96,6 +96,15 @@ class LogsTableRow extends Component { ); } + if (name === 'time') { + return ( + + ); + } + if (name === 'logger') { return ( @@ -112,15 +121,6 @@ class LogsTableRow extends Component { ); } - if (name === 'time') { - return ( - - ); - } - if (name === 'actions') { return (