Skip to content

Commit

Permalink
🐛 Prevent modal from closing when trying to move a link #54
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Jan 6, 2022
1 parent 34beb5a commit c5a318d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/Modal/ChangeCrate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
},
close() {
if (!this.isOpen) {
this.$modal.hide()
this.$modal.hide('changeCrate')
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions client/components/Modal/LinkDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export default {
return undefined
}
},
changeCrateModal() {
return this.$store.state.modal.show && this.$store.state.modal.show.changeCrate
},
linkActions() {
return [
{
Expand Down Expand Up @@ -231,6 +234,11 @@ export default {
'meta.description': value
}
})
},
changeCrateModal(value) {
if (value === false) {
this.canClose = true
}
}
},
created() {
Expand Down Expand Up @@ -261,6 +269,7 @@ export default {
},
methods: {
changeCrate() {
this.canClose = false
this.$modal.show('changeCrate', {
linkId: this.link.id
})
Expand Down

0 comments on commit c5a318d

Please sign in to comment.