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

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rotate-cw"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>

After

Width:  |  Height:  |  Size: 321 B

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()
},
}
})