add force-updatecheck renew icon for update-check popover

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-05-12 14:15:05 +02:00
parent cda0b3116f
commit 597f338353
4 changed files with 18 additions and 2 deletions

View File

@@ -4,8 +4,17 @@ export default function () {
* updatecheck
*/
if (document.getElementById('updatecheck')) {
runCheck();
}
$('#forceUpdateCheck').on('click', function () {
runCheck(1);
});
function runCheck(force = 0)
{
$.ajax({
url: "lib/ajax.php?action=updatecheck&theme=" + window.$theme,
url: "lib/ajax.php?action=updatecheck&theme=" + window.$theme + "&force=" + force,
type: "GET",
success: function (data) {
$("#updatecheck").html(data);

View File

@@ -86,3 +86,6 @@ $heading-border-color-dark: rgba(0,0,0,0.15);
// Search
$search-bg: $navbar-bg;
// Popover size
$popover-max-width: 320px;