Finish activity

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-02-04 16:41:54 +01:00
parent 9eea838a3c
commit 2a4b2b7d49
9 changed files with 232 additions and 155 deletions

View File

@@ -58,9 +58,21 @@ new Vue({
el: '#content',
router,
store,
mounted: function() {
data() {
return {
time: Date.now(),
interval: null,
}
},
created() {
// eslint-disable-next-line
new OCA.Search(this.filter, this.cleanSearch)
this.interval = setInterval(() => {
this.time = Date.now()
}, 1000)
},
beforeDestroy() {
clearInterval(this.interval)
},
methods: {
filter(query) {