#11428 Add delete agent to warning conditional

This commit is contained in:
miguel angel rasteu 2023-06-07 13:32:38 +02:00
parent eada3f7079
commit 3771644661
1 changed files with 8 additions and 6 deletions

View File

@ -435,6 +435,7 @@ if (is_management_allowed() === false) {
$text_warning = __('any node');
}
if ($option == 'delete_agents') {
ui_print_warning_message(
__(
'This node is configured with centralized mode. To delete agents go to %s',
@ -442,6 +443,7 @@ if (is_management_allowed() === false) {
)
);
}
}
$tip = '';
if ($option === 'edit_agents' || $option === 'edit_modules') {