Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 05:24:30 +0300
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-10-26 07:08:48 +0300
commitfdb46c55ee52542c6147f24363087185891e0703 (patch)
tree0c9199b15a27300420ce4b8ec0148010829e8729 /app/views/shared/boards
parent2ba71571de1147e6b5e6e6f8c14b05d07c6050c2 (diff)
Extract complex condition to computed prop
Diffstat (limited to 'app/views/shared/boards')
-rw-r--r--app/views/shared/boards/components/_board.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/boards/components/_board.html.haml b/app/views/shared/boards/components/_board.html.haml
index b79a1b17154..c6c5cadc3f5 100644
--- a/app/views/shared/boards/components/_board.html.haml
+++ b/app/views/shared/boards/components/_board.html.haml
@@ -41,7 +41,7 @@
%button.issue-count-badge-add-button.btn.btn-sm.btn-default.ml-1.has-tooltip.js-no-trigger-collapse{ type: "button",
"@click" => "showNewIssueForm",
- "v-if" => 'list.type == "backlog" || (!disabled && list.type !== "closed")',
+ "v-if" => "isNewIssueShown",
"aria-label" => _("New issue"),
"title" => _("New issue"),
data: { placement: "top", container: "body" } }