Rework web onboarding
This commit is contained in:
parent
5d9534ca72
commit
5e765bf1cb
9 changed files with 539 additions and 126 deletions
|
@ -67,6 +67,19 @@ export class CustomFeedModel {
|
|||
}
|
||||
}
|
||||
|
||||
async pin() {
|
||||
try {
|
||||
await this.rootStore.preferences.addPinnedFeed(this.uri)
|
||||
} catch (error) {
|
||||
this.rootStore.log.error('Failed to pin feed', error)
|
||||
} finally {
|
||||
track('CustomFeed:Pin', {
|
||||
name: this.data.displayName,
|
||||
uri: this.uri,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
async unsave() {
|
||||
try {
|
||||
await this.rootStore.preferences.removeSavedFeed(this.uri)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue