Skip to content

Commit

Permalink
TASK SIO-4479 fix reinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
vss414 committed Sep 7, 2022
1 parent b1e79a6 commit 31fdb84
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/servers/solusiovps/lang/english.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

$_LANG['solusiovps_config_option_plan'] = 'Plan';
$_LANG['solusiovps_config_option_operating_system'] = 'Operating System';
$_LANG['solusvm2vps_config_option_application'] = 'Application';
$_LANG['solusiovps_config_option_application'] = 'Application';
$_LANG['solusiovps_config_option_default_operating_system'] = 'Default Operating System';
$_LANG['solusiovps_config_option_application'] = 'Application';
$_LANG['solusiovps_config_option_default_location'] = 'Default Location';
Expand Down Expand Up @@ -67,5 +67,5 @@
$_LANG['solusiovps_chart_memory_title'] = 'Memory usage';
$_LANG['solusiovps_chart_memory_label_usage'] = 'Usage MiB';

$_LANG['solusvm2vps_traffic'] = 'Total traffic';
$_LANG['solusiovps_traffic'] = 'Total traffic';

2 changes: 1 addition & 1 deletion modules/servers/solusiovps/pages/reinstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$serviceId = (int) $_POST['serviceId'];
$osId = (int) $_POST['osId'];
$applicationId = (int) $_POST['applicationId'];
$applicationData = $_POST['applicationData'];
$applicationData = $_POST['applicationData'] ?? [];

$ca = new ClientArea();
$hosting = Hosting::getByServiceId($serviceId);
Expand Down
9 changes: 5 additions & 4 deletions modules/servers/solusiovps/templates/overview.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const restartServer = () => {
const onChangeOs = () => {
let $select = $('#fld-application-id');
$select.val(0);
$('#reinstall-form').html("")
$('#reinstall-form').html("");
}
const onChangeApplication = (value) => {
Expand All @@ -399,6 +399,7 @@ const reinstallServer = () => {
}
if (Object.keys(operatingSystems).length > 0) {
$('#reinstall-form').html("");
let $select = $('#fld-os-id');
$select.empty();
Expand All @@ -412,7 +413,7 @@ const reinstallServer = () => {
$select.val(defaultOsId);
} else {
$('#os-id-block').hide()
$('#os-id-block').hide();
}
if (Object.keys(applications).length > 0) {
Expand All @@ -436,13 +437,13 @@ const reinstallServer = () => {
$select.val(0);
}
} else {
$('#application-id-block').hide()
$('#application-id-block').hide();
}
$('#dlg-reinstall-selector').modal('show');
}
const reinstallServerContinue = (osId, applicationId = 0, applicationData = {}) => {
const reinstallServerContinue = (osId, applicationId = 0, applicationData = null) => {
$.post({
url: 'modules/servers/solusiovps/pages/reinstall.php',
data: {
Expand Down

0 comments on commit 31fdb84

Please sign in to comment.