Skip to content

Commit

Permalink
🐛 Don't open link in new tab on normal click
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Oct 29, 2021
1 parent a726371 commit 9a0b624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/components/Link/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ export default {
methods: {
openLinkDetails() {
if (window.innerWidth < 500) {
this.openLinkPage()
this.openLinkPage(false)
return
}
this.$modal.show('linkDetails', { link: this.link.id, editable: this.editable, endpoint: this.endpoint })
},
openLinkPage() {
this.$switchToPageOrCrate(this.link.id, { fullPage: true, isPublic: !this.endpoint && !this.editable, newTab: true })
openLinkPage(newTab = true) {
this.$switchToPageOrCrate(this.link.id, { fullPage: true, isPublic: !this.endpoint && !this.editable, newTab: newTab })
},
startDrag(e) {
this.drag = true
Expand Down

0 comments on commit 9a0b624

Please sign in to comment.