import Vue from 'vue'; import modalFilters from './filters'; import './tabs'; const ModalStore = gl.issueBoards.ModalStore; gl.issueBoards.ModalHeader = Vue.extend({ mixins: [gl.issueBoards.ModalMixins], props: { projectId: { type: Number, required: true, }, milestonePath: { type: String, required: true, }, labelPath: { type: String, required: true, }, }, data() { return ModalStore.store; }, computed: { selectAllText() { if (ModalStore.selectedCount() !== this.issues.length || this.issues.length === 0) { return 'Select all'; } return 'Deselect all'; }, showSearch() { return this.activeTab === 'all' && !this.loading && this.issuesCount > 0; }, }, methods: { toggleAll() { this.$refs.selectAllBtn.blur(); ModalStore.toggleAll(); }, }, components: { 'modal-tabs': gl.issueBoards.ModalTabs, modalFilters, }, template: `

Add issues

`, });