diff --git a/app/pages/config.php b/app/pages/config.php index 14142a9..0ba7b98 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -111,7 +111,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { switch ($item) { case 'platform': - if (isset($action) && $action === 'edit') { + if (isset($action) && $action === 'add') { + include '../app/templates/config-platform-add.php'; + } elseif (isset($action) && $action === 'edit') { include '../app/templates/config-platform-edit.php'; } elseif (isset($action) && $action === 'delete') { include '../app/templates/config-platform-delete.php'; @@ -156,16 +158,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { $jilo_agent_types_in_platform = array_column($jilo_agents_in_platform, 'agent_type_id'); include '../app/templates/config-add-agent.php'; break; - case 'add': - include '../app/templates/config-add-platform.php'; - break; case 'edit': if (isset($_GET['agent'])) { $agentDetails = $agentObject->getAgentDetails($platform_id, $agent); $jilo_agent_types = $agentObject->getAgentTypes(); include '../app/templates/config-edit-agent.php'; - } else { - include '../app/templates/config-edit-platform.php'; } break; case 'delete': diff --git a/app/templates/config-add-platform.php b/app/templates/config-platform-add.php similarity index 96% rename from app/templates/config-add-platform.php rename to app/templates/config-platform-add.php index 3f1eb8f..2c18911 100644 --- a/app/templates/config-add-platform.php +++ b/app/templates/config-platform-add.php @@ -4,7 +4,7 @@
Add new Jitsi platform