debian-mirror-gitlab/app/assets/javascripts/notes/mixins/issuable_state.js
2021-03-08 18:12:59 +05:30

21 lines
529 B
JavaScript

import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters(['getNoteableDataByProp']),
isProjectArchived() {
return this.getNoteableDataByProp('is_project_archived');
},
archivedProjectDocsPath() {
return this.getNoteableDataByProp('archived_project_docs_path');
},
lockedIssueDocsPath() {
return this.getNoteableDataByProp('locked_discussion_docs_path');
},
},
methods: {
isLocked(issue) {
return Boolean(issue.discussion_locked);
},
},
};