mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 05:29:20 +00:00
refresh stats after adding a feed
This commit is contained in:
parent
a2c8e30e79
commit
f4d05e0ea1
@ -417,9 +417,8 @@ var vm = new Vue({
|
|||||||
this.loading.newfeed = true
|
this.loading.newfeed = true
|
||||||
api.feeds.create(data).then(function(result) {
|
api.feeds.create(data).then(function(result) {
|
||||||
if (result.status === 'success') {
|
if (result.status === 'success') {
|
||||||
api.feeds.list().then(function(feeds) {
|
vm.refreshFeeds()
|
||||||
vm.feeds = feeds
|
vm.refreshStats()
|
||||||
})
|
|
||||||
vm.$bvModal.hide('settings-modal')
|
vm.$bvModal.hide('settings-modal')
|
||||||
} else if (result.status === 'multiple') {
|
} else if (result.status === 'multiple') {
|
||||||
vm.feedNewChoice = result.choice
|
vm.feedNewChoice = result.choice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user