debian-mirror-gitlab/app/assets/javascripts/notes/mixins/issuable_state.js
2018-03-17 18:26:18 +05:30

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);
},
},
};