Commit 5cc1abf9 authored by Fatih Acet's avatar Fatih Acet

MRWidget: Only show remove approval button for merged MR.

parent ffaccec7
......@@ -46,7 +46,8 @@ export default {
},
computed: {
showUnapproveButton() {
return this.userHasApproved && !this.userCanApprove;
const isMerged = this.mr.state === 'merged';
return this.userHasApproved && !this.userCanApprove && !isMerged;
},
},
methods: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment