Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
feat(post): allow updating attached tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 20, 2022
1 parent 39b8127 commit ec50ed3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/post/multiviewer/viewer/update_post_form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@ function updatePost(): void {
const hasUpdatedTags = ref<boolean>(true)
function updateTags() {
const tagIDs = tags.value.map(tag => tag.id)
hasUpdatedTags.value = false
// Add code to update the tags
fetcher.updateAttachedTags(props.modelValue.id, tagIDs)
.then()
hasUpdatedTags.value = true
}
Expand Down

0 comments on commit ec50ed3

Please sign in to comment.