feat(ui): show `updates available` diagnostic when an update is available

This commit is contained in:
Folke Lemaitre 2022-12-14 16:07:53 +01:00
parent 8de617c01b
commit ad0b4caa64
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 4 additions and 0 deletions

View File

@ -274,6 +274,10 @@ function M:diagnostics(plugin)
message = "updated from " .. plugin._.updated.from:sub(1, 7) .. " to " .. plugin._.updated.to:sub(1, 7),
})
end
elseif plugin._.has_updates then
self:diagnostic({
message = "updates available",
})
end
for _, task in ipairs(plugin._.tasks or {}) do
if task:is_running() then