13159-Move button from action buttons to modal

This commit is contained in:
Pablo Aragon 2024-03-25 09:45:08 +01:00
parent e7fefdebe9
commit 308a7dd948
2 changed files with 17 additions and 4 deletions

View File

@ -134,7 +134,7 @@ class WebServerModuleDebug extends Wizard
public function showWebServerDebug() public function showWebServerDebug()
{ {
// Show QueryResult editor. // Show QueryResult editor.
ui_query_result_editor('webserverdebug'); ui_query_result_editor('webserverdebug', false);
// Spinner for wait loads. // Spinner for wait loads.
html_print_div( html_print_div(
[ [

View File

@ -7303,7 +7303,7 @@ function ui_print_message_dialog($title, $text, $id='', $img='', $text_button=''
* *
* @return null * @return null
*/ */
function ui_query_result_editor($name='default') function ui_query_result_editor($name='default', $button_in_action_buttons=true)
{ {
$editorSubContainer = html_print_div( $editorSubContainer = html_print_div(
[ [
@ -7379,9 +7379,22 @@ function ui_query_result_editor($name='default')
] ]
); );
$execute_button = html_print_submit_button(__('Execute query'), 'execute_query', false, ['icon' => 'update'], true); $execute_button = html_print_submit_button(
html_print_action_buttons($execute_button); __('Execute query'),
'execute_query',
false,
[
'icon' => 'update',
'class' => 'float-right',
],
true
);
if ($button_in_action_buttons === true) {
html_print_action_buttons($execute_button);
} else {
echo $execute_button;
}
} }