diff options
author | 🙈 jacopo beschi 🙉 <intrip@gmail.com> | 2019-07-30 01:35:29 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-30 01:35:29 +0300 |
commit | c96e1257006fc0c7309bd7757bd2c53444d7d3af (patch) | |
tree | 28474e62c98b10f89ed5b223799aef1058023936 /app/models/label.rb | |
parent | 8b9ad9c6cc922bc518cdf201501330e83960353a (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.rb | 4 |
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 |