Add “Update available” navigation item at top of navbar when new Mastodon versions are available (#39705)
This commit is contained in:
1 parent
7db2a99504
commit
f4cdbb9015
5 files changed
+12
-3
No files matched your search
@@ -47,6 +47,10 @@ class SoftwareUpdate < ApplicationRecord
|
||||
all.to_a.filter(&:pending?)
|
||||
end
|
||||
|
||||
def pending?
|
||||
pending_to_a.present?
|
||||
end
|
||||
|
||||
def urgent_pending?
|
||||
pending_to_a.any?(&:urgent?)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user