mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Added colors to the LogsViewer app
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
*
|
||||
*/
|
||||
export const LogsViewerTabulatorOptions = {
|
||||
height: 500,
|
||||
height: 700,
|
||||
layout: 'fitColumns',
|
||||
columns: [
|
||||
{title: 'Log ID', field: 'LogId'},
|
||||
@@ -29,7 +29,17 @@ export const LogsViewerTabulatorOptions = {
|
||||
{title: 'Description', field: 'Description'},
|
||||
{title: 'Data', field: 'Data'},
|
||||
{title: 'Web service type', field: 'WebserviceType'}
|
||||
]
|
||||
],
|
||||
rowFormatter: function(row) {
|
||||
if (row.getData().RequestId.includes("error"))
|
||||
{
|
||||
row.getElement().style.color = "red";
|
||||
}
|
||||
else if (row.getData().RequestId.includes("warning"))
|
||||
{
|
||||
row.getElement().style.color = "orange";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user