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:
author🙈 jacopo beschi 🙉 <intrip@gmail.com>2019-07-30 01:35:29 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2019-07-30 01:35:29 +0300
commitc96e1257006fc0c7309bd7757bd2c53444d7d3af (patch)
tree28474e62c98b10f89ed5b223799aef1058023936 /app/models/label.rb
parent8b9ad9c6cc922bc518cdf201501330e83960353a (diff)
Make quick action "commands applied" banner more useful
Extends the quick actions "commands applied" banner to show the quick action preview text, but with everything in past tense.
Diffstat (limited to 'app/models/label.rb')
-rw-r--r--app/models/label.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index dd403562bfa..25de26b8384 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -137,6 +137,10 @@ class Label < ApplicationRecord
where(id: ids)
end
+ def self.on_project_board?(project_id, label_id)
+ on_project_boards(project_id).where(id: label_id).exists?
+ end
+
def open_issues_count(user = nil)
issues_count(user, state: 'opened')
end