Commit 8aa0f45d authored by Bryce Johnson's avatar Bryce Johnson

Rename maybeDisableAcceptance -> setMergeRequestAcceptanceStatus

parent 2dad2438
......@@ -40,22 +40,22 @@
fetch() {
return this.api.fetchApprovals()
.then(res => this.assignToRootStore('approvals', res.data))
.then(data => this.maybeDisableAcceptance(data.approvalsLeft));
.then(data => this.setMergeRequestAcceptanceStatus(data.approvalsLeft));
}
approve() {
return this.api.approveMergeRequest()
.then(res => this.assignToRootStore('approvals', res.data))
.then(data => this.maybeDisableAcceptance(data.approvalsLeft));
.then(data => this.setMergeRequestAcceptanceStatus(data.approvalsLeft));
}
unapprove() {
return this.api.unapproveMergeRequest()
.then(res => this.assignToRootStore('approvals', res.data))
.then(data => this.maybeDisableAcceptance(data.approvalsLeft));
.then(data => this.setMergeRequestAcceptanceStatus(data.approvalsLeft));
}
maybeDisableAcceptance(approvalsLeft) {
setMergeRequestAcceptanceStatus(approvalsLeft) {
return this.rootStore.assignToData('disableAcceptance', !!approvalsLeft);
}
......
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