summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diff_notes/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/diff_notes/components')
-rw-r--r--app/assets/javascripts/diff_notes/components/resolve_all_btn.js.es610
1 files changed, 1 insertions, 9 deletions
diff --git a/app/assets/javascripts/diff_notes/components/resolve_all_btn.js.es6 b/app/assets/javascripts/diff_notes/components/resolve_all_btn.js.es6
index 4c56386ad66..102f213cae5 100644
--- a/app/assets/javascripts/diff_notes/components/resolve_all_btn.js.es6
+++ b/app/assets/javascripts/diff_notes/components/resolve_all_btn.js.es6
@@ -40,15 +40,7 @@
},
methods: {
resolve: function () {
- let promise;
-
- if (this.allResolved) {
- promise = ResolveService
- .unResolveAll(this.namespace, this.mergeRequestId, this.discussionId);
- } else {
- promise = ResolveService
- .resolveAll(this.namespace, this.mergeRequestId, this.discussionId);
- }
+ ResolveService.toggleResolveForDiscussion(this.namespace, this.mergeRequestId, this.discussionId);
}
}
});