Skip to content

Commit

Permalink
fix(proof edit): forgot to disable button if user cannot edit. ref #650
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 24, 2024
1 parent 5358ade commit 7701ec7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/ProofActionMenuButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-icon>mdi-dots-vertical</v-icon>
<v-menu activator="parent" scroll-strategy="close" transition="slide-y-transition">
<v-list>
<v-list-item :slim="true" prepend-icon="mdi-pencil" @click="openEditDialog">
<v-list-item :slim="true" prepend-icon="mdi-pencil" :disabled="!userCanEditProof" @click="openEditDialog">
{{ $t('Common.Edit') }}
</v-list-item>
<v-list-item :slim="true" prepend-icon="mdi-delete" :disabled="!userCanDeleteProof" @click="openDeleteConfirmationDialog">
Expand Down
4 changes: 0 additions & 4 deletions src/components/ProofCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ export default {
type: Boolean,
default: false,
},
isEditable: {
type: Boolean,
default: false,
},
imageHeight: {
type: String,
default: '100%',
Expand Down
3 changes: 0 additions & 3 deletions src/components/ProofFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ export default {
userIsProofOwner() {
return this.username && (this.proof.owner === this.username)
},
proofIsReceipt() {
return this.proof.type === 'RECEIPT'
},
},
methods: {
goToProof() {
Expand Down

0 comments on commit 7701ec7

Please sign in to comment.