mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
track running status
This commit is contained in:
@@ -268,6 +268,9 @@ var vm = new Vue({
|
||||
methods: {
|
||||
refreshStats: function() {
|
||||
api.status().then(function(data) {
|
||||
if (data.running) {
|
||||
setTimeout(vm.refreshStats.bind(vm), 2000)
|
||||
}
|
||||
vm.feedStats = data.stats.reduce(function(acc, stat) {
|
||||
acc[stat.feed_id] = stat
|
||||
return acc
|
||||
@@ -451,6 +454,7 @@ var vm = new Vue({
|
||||
api.upload_opml(form).then(function() {
|
||||
input.value = ''
|
||||
vm.refreshFeeds()
|
||||
vm.refreshStats()
|
||||
})
|
||||
},
|
||||
getReadable: function(item) {
|
||||
|
Reference in New Issue
Block a user