summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/mixins/resolvable.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/notes/mixins/resolvable.js')
-rw-r--r--app/assets/javascripts/notes/mixins/resolvable.js17
1 files changed, 2 insertions, 15 deletions
diff --git a/app/assets/javascripts/notes/mixins/resolvable.js b/app/assets/javascripts/notes/mixins/resolvable.js
index baada4c5ce8..27ed8e203b0 100644
--- a/app/assets/javascripts/notes/mixins/resolvable.js
+++ b/app/assets/javascripts/notes/mixins/resolvable.js
@@ -1,24 +1,11 @@
import { deprecatedCreateFlash as Flash } from '~/flash';
import { __ } from '~/locale';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
- mixins: [glFeatureFlagsMixin()],
computed: {
discussionResolved() {
if (this.discussion) {
- const { notes, resolved } = this.discussion;
-
- if (this.glFeatures.removeResolveNote) {
- return Boolean(resolved);
- }
-
- if (notes) {
- // Decide resolved state using store. Only valid for discussions.
- return notes.filter((note) => !note.system).every((note) => note.resolved);
- }
-
- return resolved;
+ return Boolean(this.discussion.resolved);
}
return this.note.resolved;
@@ -47,7 +34,7 @@ export default {
let endpoint =
discussion && this.discussion ? this.discussion.resolve_path : `${this.note.path}/resolve`;
- if (this.glFeatures.removeResolveNote && this.discussionResolvePath) {
+ if (this.discussionResolvePath) {
endpoint = this.discussionResolvePath;
}