refresh feeds

This commit is contained in:
Nazar Kanaev
2020-08-01 18:18:07 +01:00
parent 99c99f6923
commit 8b0d62fb15
5 changed files with 23 additions and 1 deletions

View File

@@ -37,6 +37,9 @@
list_items: function(id) {
return api('get', '/api/feeds/' + id + '/items').then(json)
},
refresh: function() {
return api('post', '/api/feeds/refresh')
},
},
folders: {
list: function() {

View File

@@ -497,6 +497,9 @@ var vm = new Vue({
incrFont: function(x) {
console.log(x, this.settings.size)
this.settings.size = +(this.settings.size + (0.1 * x)).toFixed(1)
}
},
fetchAllFeeds: function() {
api.feeds.refresh()
},
}
})