summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/LogModule.vue
diff options
context:
space:
mode:
authorUdo Walter2019-03-04 18:46:36 +0100
committerUdo Walter2019-03-04 18:46:36 +0100
commit6d5702a9632f381d466d9dd0373ca2e895920950 (patch)
tree6cd7660d8e439b597b3de4ad53312aee0140fcac /webapp/src/components/LogModule.vue
parent[webapp/datatablesearch] small height fix (diff)
downloadbas-6d5702a9632f381d466d9dd0373ca2e895920950.tar.gz
bas-6d5702a9632f381d466d9dd0373ca2e895920950.tar.xz
bas-6d5702a9632f381d466d9dd0373ca2e895920950.zip
eslint fixes
Diffstat (limited to 'webapp/src/components/LogModule.vue')
-rw-r--r--webapp/src/components/LogModule.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/components/LogModule.vue b/webapp/src/components/LogModule.vue
index 69b1664..c78475c 100644
--- a/webapp/src/components/LogModule.vue
+++ b/webapp/src/components/LogModule.vue
@@ -242,7 +242,7 @@ export default {
}
},
methods: {
- formatDate(date, options = {}) {
+ formatDate (date, options = {}) {
var result = ''
const pad = x => x < 10 ? '0' + x : x
if (options.date !== false) {
@@ -251,7 +251,7 @@ export default {
if (options.time !== false) {
if (result !== '') result += ' '
result += pad(date.getHours()) + ':' + pad(date.getMinutes() + 1)
- if (options.seconds !== false) result += ':' + pad(date.getSeconds())
+ if (options.seconds !== false) result += ':' + pad(date.getSeconds())
}
return result
},
@@ -281,7 +281,7 @@ export default {
})
const date = new Date()
date.setDate(date.getDate() - 7)
- this.fromDate = this.formatDate(this.defaultStartDate, { time: false }),
+ this.fromDate = this.formatDate(this.defaultStartDate, { time: false })
this.fromTime = this.formatDate(this.defaultStartDate, { date: false, seconds: false })
this.loadLog()
}