diff options
Diffstat (limited to 'src/components/delete_button/delete_button.js')
| -rw-r--r-- | src/components/delete_button/delete_button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/delete_button/delete_button.js b/src/components/delete_button/delete_button.js index 726509d0..77da1b87 100644 --- a/src/components/delete_button/delete_button.js +++ b/src/components/delete_button/delete_button.js @@ -2,7 +2,7 @@ const DeleteButton = { props: [ 'status' ], methods: { deleteStatus () { - const confirmed = confirm('Do you really want to delete this status?') + const confirmed = window.confirm('Do you really want to delete this status?') if (confirmed) { this.$store.dispatch('deleteStatus', { id: this.status.id }) } @@ -10,7 +10,7 @@ const DeleteButton = { }, computed: { currentUser () { return this.$store.state.users.currentUser }, - canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id == this.currentUser.id } + canDelete () { return this.currentUser.rights.delete_others_notice || this.status.user.id === this.currentUser.id } } } |
