Skip to content

Commit

Permalink
refactor for hcpp_render_body, hcpp_render_panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Aug 16, 2023
1 parent 8d1c83a commit 89b3d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vscode.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct() {
$hcpp->add_action( 'hcpp_rebooted', [ $this, 'hcpp_rebooted' ] );
$hcpp->add_action( 'hcpp_plugin_disabled', [ $this, 'hcpp_plugin_disabled' ] );
$hcpp->add_action( 'hcpp_plugin_enabled', [ $this, 'hcpp_plugin_enabled' ] );
$hcpp->add_action( 'hcpp_render_page', [ $this, 'hcpp_render_page' ] );
$hcpp->add_action( 'hcpp_render_body', [ $this, 'hcpp_render_body' ] );
}

// Stop services on plugin disabled.
Expand Down Expand Up @@ -303,7 +303,7 @@ public function update_token( $user ) {
}

// Add VSCode Server icon to our web domain list and button to domain edit pages.
public function hcpp_render_page( $args ) {
public function hcpp_render_body( $args ) {
if ( $args['page'] == 'list_web' ) {
$args = $this->render_list_web( $args );
}
Expand Down Expand Up @@ -395,7 +395,7 @@ public function render_list_web( $args ) {
// $hcpp->add_action( 'hcpp_new_domain_ready', [ $this, 'hcpp_new_domain_ready' ] );
// $hcpp->add_action( 'priv_delete_user', [ $this, 'priv_delete_user' ] );
// $hcpp->add_action( 'hcpp_invoke_plugin', [ $this, 'hcpp_invoke_plugin' ] );
// $hcpp->add_action( 'hcpp_render_page', [ $this, 'hcpp_render_page' ] );
// $hcpp->add_action( 'hcpp_render_body', [ $this, 'hcpp_render_body' ] );
// }

// // Trigger setup and configuration when domain is created.
Expand Down

0 comments on commit 89b3d83

Please sign in to comment.