mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
refresh ui hacks
This commit is contained in:
parent
1ea8160f7d
commit
3d9c9d03cc
@ -631,7 +631,13 @@ var vm = new Vue({
|
|||||||
this.theme.size = +(this.theme.size + (0.1 * x)).toFixed(1)
|
this.theme.size = +(this.theme.size + (0.1 * x)).toFixed(1)
|
||||||
},
|
},
|
||||||
fetchAllFeeds: function() {
|
fetchAllFeeds: function() {
|
||||||
api.feeds.refresh().then(this.refreshStats.bind(this))
|
if (this.loading.feeds) return
|
||||||
|
api.feeds.refresh().then(function() {
|
||||||
|
// NOTE: this is hacky
|
||||||
|
setTimeout(function() {
|
||||||
|
vm.refreshStats()
|
||||||
|
}, 1000)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
computeStats: function() {
|
computeStats: function() {
|
||||||
var filter = this.filterSelected
|
var filter = this.filterSelected
|
||||||
|
@ -89,7 +89,6 @@ func (w *Worker) SetRefreshRate(minute int64) {
|
|||||||
|
|
||||||
func (w *Worker) RefreshFeeds() {
|
func (w *Worker) RefreshFeeds() {
|
||||||
log.Print("Refreshing feeds")
|
log.Print("Refreshing feeds")
|
||||||
// TODO: set the counter here?
|
|
||||||
go w.refresher()
|
go w.refresher()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user