Don't show error if RSS feeds didn't return any items
This commit is contained in:
parent
b25b117717
commit
328e10b89f
6 changed files with 16 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ type RSS struct {
|
|||
Items feed.RSSFeedItems `yaml:"-"`
|
||||
Limit int `yaml:"limit"`
|
||||
CollapseAfter int `yaml:"collapse-after"`
|
||||
NoItemsMessage string `yaml:"-"`
|
||||
}
|
||||
|
||||
func (widget *RSS) Initialize() error {
|
||||
|
|
@ -45,6 +46,8 @@ func (widget *RSS) Initialize() error {
|
|||
}
|
||||
}
|
||||
|
||||
widget.NoItemsMessage = "No items were returned from the feeds."
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue