summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorUdo Walter2019-04-01 00:36:51 +0200
committerUdo Walter2019-04-01 00:36:51 +0200
commit640651aea26fe16f4b79319419295f2543ba9fc4 (patch)
treecccfeb65ad07e3ecac0a8b599010892f8d401edb /webapp
parent[server/httpresponse] small rework (diff)
downloadbas-640651aea26fe16f4b79319419295f2543ba9fc4.tar.gz
bas-640651aea26fe16f4b79319419295f2543ba9fc4.tar.xz
bas-640651aea26fe16f4b79319419295f2543ba9fc4.zip
[webapp/systemlog] add colors to category
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/LogModule.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/src/components/LogModule.vue b/webapp/src/components/LogModule.vue
index 6f580cb..a381fb2 100644
--- a/webapp/src/components/LogModule.vue
+++ b/webapp/src/components/LogModule.vue
@@ -189,6 +189,14 @@
<v-subheader>{{ $t('log') }}</v-subheader>
<v-card>
<data-table :loading="loading" :headers="headers" :items="log" min-width="900px" no-select no-sort :row-count="-1">
+ <template #category="{ item }">
+ <span
+ style="user-select: text"
+ :class="item.category.indexOf('ERROR_') === 0 ? 'error--text' : item.category.indexOf('WARNING_') === 0 ? 'warning--text' : 'primary--text'"
+ >
+ {{ item.category }}
+ </span>
+ </template>
<template #description="{ item }">
<log-module-entry :item="item"></log-module-entry>
</template>
@@ -356,4 +364,12 @@ export default {
min-width: 70px;
width: 70px;
}
+
+.theme--dark .primary--text {
+ color: white !important;
+}
+
+.error--text, .warning--text {
+ font-weight: bold;
+}
</style>