Module check force

This commit is contained in:
Jonathan 2023-03-27 14:07:36 +02:00
parent 3beec9bfab
commit ea6aa8629b
1 changed files with 4 additions and 2 deletions

View File

@ -1279,16 +1279,18 @@ if (check_login()) {
if ((int) $module['flag'] === 0) {
$additionalLinkAction = '&flag=1';
$linkCaption = __('Force checks');
$imgaction = 'images/target.png';
} else {
$additionalLinkAction = '';
$linkCaption = __('Refresh');
$imgaction = 'images/go-back@svg.svg';
}
$moduleActionButtons[] = html_print_anchor(
[
'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$addedLinkParams.'"',
'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$additionalLinkAction.'"',
'content' => html_print_image(
'images/go-back@svg.svg',
$imgaction,
true,
[ 'class' => 'main_menu_icon' ]
),