Skip to content

Commit

Permalink
🐛 Prevent edit request for link details in external crate
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Sep 4, 2021
1 parent aec2a1f commit 3c875df
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions client/components/Modal/LinkDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,7 @@ export default {
}
},
linkTitle(value, oldValue) {
if (!value || value === oldValue) return
/* this.link = {
...this.link,
meta: { ...this.link.meta, title: value }
} */
if (!value || value === oldValue || !this.editable) return
this.$store.dispatch('CHANGE_LINK', {
linkId: this.link.id,
Expand All @@ -210,12 +205,7 @@ export default {
})
},
linkDescription(value, oldValue) {
if (!value || value === oldValue) return
/* this.link = {
...this.link,
meta: { ...this.link.meta, description: value }
} */
if (!value || value === oldValue || !this.editable) return
this.$store.dispatch('CHANGE_LINK', {
linkId: this.link.id,
Expand Down

0 comments on commit 3c875df

Please sign in to comment.