diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-10-26 11:19:22 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-10-26 11:19:22 +0000 |
commit | ad8a859b6efab6e9aabb8f4e5f1f0e38b1365a1a (patch) | |
tree | a2ee29ef31b2fdc8b5d65ce7915ad3a52e46480e /app/assets | |
parent | 8325a1fc9f0b2c9cea9073d4377f2b3b35771e8b (diff) | |
parent | fdb46c55ee52542c6147f24363087185891e0703 (diff) | |
download | gitlab-ce-ad8a859b6efab6e9aabb8f4e5f1f0e38b1365a1a.tar.gz |
Merge branch '52545-guest-create-issue-in-group-board' into 'master'
Resolve "Adding issues from group/project board is not allowed for project-level users"
See merge request gitlab-org/gitlab-ce!22557
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/boards/components/board.js | 3 | ||||
-rw-r--r-- | app/assets/javascripts/boards/components/project_select.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/board.js b/app/assets/javascripts/boards/components/board.js index 75477ebb3b3..623cda5679a 100644 --- a/app/assets/javascripts/boards/components/board.js +++ b/app/assets/javascripts/boards/components/board.js @@ -53,6 +53,9 @@ export default Vue.extend({ const { issuesSize } = this.list; return `${n__('%d issue', '%d issues', issuesSize)}`; }, + isNewIssueShown() { + return this.list.type === 'backlog' || (!this.disabled && this.list.type !== 'closed'); + } }, watch: { filter: { diff --git a/app/assets/javascripts/boards/components/project_select.vue b/app/assets/javascripts/boards/components/project_select.vue index 4e8fe16160a..427a0868b0c 100644 --- a/app/assets/javascripts/boards/components/project_select.vue +++ b/app/assets/javascripts/boards/components/project_select.vue @@ -46,7 +46,7 @@ export default { selectable: true, data: (term, callback) => { this.loading = true; - return Api.groupProjects(this.groupId, term, {}, projects => { + return Api.groupProjects(this.groupId, term, {with_issues_enabled: true}, projects => { this.loading = false; callback(projects); }); |