From c74ed4914b4ab5d309d00fb0ed04e18e1d119413 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 4 May 2023 11:37:16 +0200 Subject: [PATCH] Websocket engine test button --- .../godmode/setup/setup_websocket_engine.php | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/pandora_console/godmode/setup/setup_websocket_engine.php b/pandora_console/godmode/setup/setup_websocket_engine.php index e042ae7788..dade7c564e 100644 --- a/pandora_console/godmode/setup/setup_websocket_engine.php +++ b/pandora_console/godmode/setup/setup_websocket_engine.php @@ -80,6 +80,31 @@ $t->data[1][] = html_print_label_input_block( ); html_print_input_hidden('update_config', 1); + +// Test. +$row = []; +$test_start = ''; +$test_start .= ''; +$test_start .= ''; +$test_start .= ' '; +$row['gotty_test'] = html_print_label_input_block( + __('Test'), + html_print_button( + __('Start'), + 'test-gotty', + false, + 'handleTest()', + [ + 'icon' => 'cog', + 'mode' => 'secondary mini', + 'style' => 'width: 115px;', + ], + true + ).$test_start +); + +$t->data['gotty_test'] = $row; + html_print_table($t); echo ''; @@ -99,3 +124,81 @@ html_print_action_buttons( ); echo ''; + +echo '';