mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
select the newly added feed
This commit is contained in:
parent
fd44c98cd0
commit
96796702cf
@ -1,4 +1,3 @@
|
||||
- fix: focus on the newly added feed
|
||||
- etc: test new parser extensively
|
||||
- fix: loading items (by scrolling down) is glitching while feeds are refreshing
|
||||
|
||||
|
@ -544,6 +544,7 @@ var vm = new Vue({
|
||||
vm.refreshFeeds()
|
||||
vm.refreshStats()
|
||||
vm.settings = ''
|
||||
vm.feedSelected = 'feed:' + result.feed.id
|
||||
} else if (result.status === 'multiple') {
|
||||
vm.feedNewChoice = result.choice
|
||||
vm.feedNewChoiceSelected = result.choice[0].url
|
||||
|
@ -188,7 +188,10 @@ func (s *Server) handleFeedList(c *router.Context) {
|
||||
s.db.CreateItems(worker.ConvertItems(result.Feed.Items, *feed))
|
||||
s.worker.FindFeedFavicon(*feed)
|
||||
|
||||
c.JSON(http.StatusOK, map[string]string{"status": "success"})
|
||||
c.JSON(http.StatusOK, map[string]interface{}{
|
||||
"status": "success",
|
||||
"feed": feed,
|
||||
})
|
||||
default:
|
||||
c.JSON(http.StatusOK, map[string]string{"status": "notfound"})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user