gitlab-org--gitlab-foss/app/assets/javascripts/notes/mixins/issuable_state.js
2017-10-02 10:34:40 +01:00

15 lines
275 B
JavaScript

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