Module check force

This commit is contained in:
Jonathan 2023-03-27 14:07:36 +02:00
parent 3beec9bfab
commit ea6aa8629b

View File

@ -1279,16 +1279,18 @@ if (check_login()) {
if ((int) $module['flag'] === 0) { if ((int) $module['flag'] === 0) {
$additionalLinkAction = '&flag=1'; $additionalLinkAction = '&flag=1';
$linkCaption = __('Force checks'); $linkCaption = __('Force checks');
$imgaction = 'images/target.png';
} else { } else {
$additionalLinkAction = ''; $additionalLinkAction = '';
$linkCaption = __('Refresh'); $linkCaption = __('Refresh');
$imgaction = 'images/go-back@svg.svg';
} }
$moduleActionButtons[] = html_print_anchor( $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( 'content' => html_print_image(
'images/go-back@svg.svg', $imgaction,
true, true,
[ 'class' => 'main_menu_icon' ] [ 'class' => 'main_menu_icon' ]
), ),