update pinned feed from custom feed view
This commit is contained in:
parent
8a2349c55f
commit
52a8879754
2 changed files with 48 additions and 14 deletions
|
@ -129,8 +129,14 @@ export class SavedFeedsModel {
|
|||
)
|
||||
}
|
||||
|
||||
isPinned(feed: CustomFeedModel) {
|
||||
return this.rootStore.preferences.pinnedFeeds.includes(feed.uri)
|
||||
isPinned(feedOrUri: CustomFeedModel | string) {
|
||||
let uri: string
|
||||
if (typeof feedOrUri === 'string') {
|
||||
uri = feedOrUri
|
||||
} else {
|
||||
uri = feedOrUri.uri
|
||||
}
|
||||
return this.rootStore.preferences.pinnedFeeds.includes(uri)
|
||||
}
|
||||
|
||||
async movePinnedFeed(item: CustomFeedModel, direction: 'up' | 'down') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue