gitlab-org--gitlab-foss/app/assets/javascripts/notes/mixins/issuable_state.js
Nathan Friend bee3c7e847 Comply with no-implicit-coercion rule (CE)
This commit is the result of running `yarn eslint --fix` after enabling
the `no-implicit-coercion` ESLint rule.  This rule has been added to
our ESLint config here:

https://gitlab.com/gitlab-org/gitlab-eslint-config/merge_requests/14
2019-06-03 22:51:02 +00:00

15 lines
289 B
JavaScript

export default {
methods: {
isConfidential(issue) {
return Boolean(issue.confidential);
},
isLocked(issue) {
return Boolean(issue.discussion_locked);
},
hasWarning(issue) {
return this.isConfidential(issue) || this.isLocked(issue);
},
},
};