debian-mirror-gitlab/app/assets/javascripts/notes/mixins/issuable_state.js

16 lines
275 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
export default {
methods: {
isConfidential(issue) {
return !!issue.confidential;
},
isLocked(issue) {
return !!issue.discussion_locked;
},
hasWarning(issue) {
return this.isConfidential(issue) || this.isLocked(issue);
},
},
};