Skip to content

Commit

Permalink
Move new storage wizard error messages to error window
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Sep 2, 2024
1 parent ba4e5c4 commit 7202671
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Web/Pages/NewFileStorageWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function loadAPIHosts()
array_unshift($api_hosts, '');

$this->StorageAPIHost->DataSource = array_combine($api_hosts, $api_hosts);
if (count($api_hosts) === 2) {
if (count($api_hosts) === 2) {
$this->StorageAPIHost->setSelectedValue($api_hosts[1]);
$this->APIHostContainer->Display = 'None';
} else {
Expand Down Expand Up @@ -123,7 +123,8 @@ public function wizardCompleted($sender, $param)
$api = $this->getModule('api');
$result = $api->get(
['config', 'sd', 'Director', $_SESSION['dir']],
$api_host
$api_host,
false
);
$sd_password = '';
if ($result->error == 0) {
Expand All @@ -134,7 +135,8 @@ public function wizardCompleted($sender, $param)
$api = $this->getModule('api');
$result = $api->get(
['config', 'sd', 'Storage'],
$api_host
$api_host,
false
);
$sd_port = 0;
if ($result->error == 0) {
Expand Down

0 comments on commit 7202671

Please sign in to comment.