Skip to content

Commit

Permalink
feat(saved posts): show toast when not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 22, 2024
1 parent e2279c3 commit 3b9e1cf
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion pages/premium/saved-posts/[domain].vue
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,30 @@
}
async function onSearchSubmit({ tags, filters }) {
await reflectChangesInUrl({ page: null, tags, filters })
await reflectChangesInUrl({ page: null, filters })
// TODO: Tags
// await reflectChangesInUrl({ page: null, tags, filters })
}
/**
* Adds the tag, or removes it if it already exists
*/
async function onPostAddTag(tag: string) {
toast.error('Not implemented')
}
/**
* Sets tags to only the given tag
*/
async function onPostSetTag(tag: string) {
toast.error('Not implemented')
}
/**
* Opens the tag in a new tab
*/
async function onPostOpenTagInNewTab(tag: string) {
toast.error('Not implemented')
}
async function onLoadNextPostPage() {
Expand Down Expand Up @@ -679,6 +702,9 @@
<PostComponent
:post="allRows[virtualRow.index]"
:selected-tags="selectedTags"
@addTag="onPostAddTag"
@openTagInNewTab="onPostOpenTagInNewTab"
@setTag="onPostSetTag"
/>
</template>
</li>
Expand Down

0 comments on commit 3b9e1cf

Please sign in to comment.