import Vue from 'vue'; const ModalStore = gl.issueBoards.ModalStore; gl.issueBoards.ModalEmptyState = Vue.extend({ mixins: [gl.issueBoards.ModalMixins], data() { return ModalStore.store; }, props: { image: { type: String, required: true, }, newIssuePath: { type: String, required: true, }, }, computed: { contents() { const obj = { title: 'You haven\'t added any issues to your project yet', content: ` An issue can be a bug, a todo or a feature request that needs to be discussed in a project. Besides, issues are searchable and filterable. `, }; if (this.activeTab === 'selected') { obj.title = 'You haven\'t selected any issues yet'; obj.content = ` Go back to Open issues and select some issues to add to your board. `; } return obj; }, }, template: `

{{ contents.title }}

New issue
`, });