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

@@ -193,7 +193,8 @@ class Ajax
UI::initTwig();
try {
$json_result = \Froxlor\Api\Commands\Froxlor::getLocal($this->userinfo)->checkUpdate();
$force = Request::get('force', 0);
$json_result = \Froxlor\Api\Commands\Froxlor::getLocal($this->userinfo, ['force' => $force])->checkUpdate();
$result = json_decode($json_result, true)['data'];
$result['full_version'] = Froxlor::getFullVersion();
$result['dbversion'] = Froxlor::DBVERSION;