summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/batch_comments/mixins/resolved_status.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/batch_comments/mixins/resolved_status.js')
-rw-r--r--app/assets/javascripts/batch_comments/mixins/resolved_status.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/javascripts/batch_comments/mixins/resolved_status.js b/app/assets/javascripts/batch_comments/mixins/resolved_status.js
index 0b085da1ff9..bec360e3b2e 100644
--- a/app/assets/javascripts/batch_comments/mixins/resolved_status.js
+++ b/app/assets/javascripts/batch_comments/mixins/resolved_status.js
@@ -1,9 +1,7 @@
import { mapGetters } from 'vuex';
import { sprintf, s__, __ } from '~/locale';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
- mixins: [glFeatureFlagsMixin()],
props: {
discussionId: {
type: String,
@@ -52,16 +50,18 @@ export default {
return this.resolveDiscussion ? 'is-resolving-discussion' : 'is-unresolving-discussion';
},
resolveButtonTitle() {
- if (this.isDraft || this.discussionId) return this.resolvedStatusMessage;
+ const escapeParameters = false;
- let title = __('Mark as resolved');
+ if (this.isDraft || this.discussionId) return this.resolvedStatusMessage;
- if (this.glFeatures.removeResolveNote) {
- title = __('Resolve thread');
- }
+ let title = __('Resolve thread');
if (this.resolvedBy) {
- title = sprintf(__('Resolved by %{name}'), { name: this.resolvedBy.name });
+ title = sprintf(
+ __('Resolved by %{name}'),
+ { name: this.resolvedBy.name },
+ escapeParameters,
+ );
}
return title;