Rework web onboarding

This commit is contained in:
Paul Frazee 2023-08-29 22:56:13 -07:00
parent 5d9534ca72
commit 5e765bf1cb
9 changed files with 539 additions and 126 deletions

View file

@ -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)