Skip to content

Commit

Permalink
feat: add view only prop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 18, 2021
1 parent 4dc2c77 commit b5bba57
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/pages/posts/content/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export default {
type: Object,
required: true,
},
viewOnly: {
type: Boolean,
default: false,
},
},
data() {
Expand Down Expand Up @@ -343,6 +348,11 @@ export default {
// #region Post tags
fetchSpecificTag(tag) {
if (this.viewOnly) {
console.info('View only')
return
}
this.tagsManager({
operation: 'set',
value: [tag],
Expand Down

0 comments on commit b5bba57

Please sign in to comment.