Improve pinned feed management
This commit is contained in:
parent
bec94ed82c
commit
129fc42e95
3 changed files with 79 additions and 71 deletions
|
@ -81,7 +81,7 @@ export class SavedFeedsModel {
|
|||
|
||||
togglePinnedFeed(feed: CustomFeedModel) {
|
||||
if (!this.isPinned(feed)) {
|
||||
this.pinned.push(feed)
|
||||
this.pinned = [...this.pinned, feed]
|
||||
} else {
|
||||
this.removePinnedFeed(feed.data.uri)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue