refresh stats after adding a feed
This commit is contained in:
parent
a2c8e30e79
commit
f4d05e0ea1
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue