bee3c7e847
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
15 lines
289 B
JavaScript
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);
|
|
},
|
|
},
|
|
};
|