Add “Update available” navigation item at top of navbar when new Mastodon versions are available (#39705)

This commit is contained in:
Claire committed 2026-07-03 14:38:32 +02:00
1 parent 7db2a99504
commit f4cdbb9015
5 files changed
+12 -3

No files matched your search

+4
View File
@@ -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