This commit is contained in:
Andras Bacsai
2023-06-22 10:04:39 +02:00
parent d5d671bac1
commit 33cae2c222
19 changed files with 47 additions and 17 deletions

View File

@@ -25,6 +25,8 @@ class All extends Component
'application_id' => $this->application->id,
]);
$this->application->refresh();
$this->emit('success', 'Environment variable added successfully.');
$this->emit('clearAddEnv');
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);

View File

@@ -28,6 +28,7 @@ class Show extends Component
{
$this->validate();
$this->env->save();
$this->emit('success', 'Environment variable updated successfully.');
}
public function delete()
{

View File

@@ -127,6 +127,7 @@ class General extends Component
$this->application->fqdn = $domains->implode(',');
$this->application->save();
$this->emit('success', 'Application settings updated!');
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);
}

View File

@@ -41,6 +41,7 @@ class Form extends Component
$this->validate();
$this->application->preview_url_template = str_replace(' ', '', $this->application->preview_url_template);
$this->application->save();
$this->emit('success', 'Preview url template updated successfully.');
$this->generate_real_url();
}
}

View File

@@ -52,6 +52,7 @@ class ResourceLimits extends Component
}
$this->validate();
$this->application->save();
$this->emit('success', 'Resource limits updated successfully.');
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);
}

View File

@@ -25,6 +25,7 @@ class All extends Component
'resource_type' => Application::class,
]);
$this->application->refresh();
$this->emit('success', 'Storage added successfully');
$this->emit('clearAddStorage');
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);

View File

@@ -21,6 +21,7 @@ class Show extends Component
{
$this->validate();
$this->storage->save();
$this->emit('success', 'Storage updated successfully');
}
public function delete()
{

View File

@@ -82,5 +82,6 @@ class Form extends Component
// return;
// }
$this->server->save();
$this->emit('success', 'Server updated successfully.');
}
}

View File

@@ -63,6 +63,7 @@ class Proxy extends Component
instant_remote_process([
"echo '$docker_compose_yml_base64' | base64 -d > $proxy_path/docker-compose.yml",
], $server);
$this->emit('success', 'Proxy configuration saved.');
} catch (\Exception $e) {
return general_error_handler(err: $e);
}

View File

@@ -207,5 +207,6 @@ class Configuration extends Component
if ($this->settings->fqdn || $this->settings->default_redirect_404) {
dispatch(new InstanceProxyCheckJob());
}
$this->emit('success', 'Instance settings updated successfully!');
}
}

View File

@@ -42,6 +42,7 @@ class Email extends Component
{
try {
$this->submit();
$this->emit('success', 'Settings saved successfully.');
} catch (\Exception $e) {
$this->settings->smtp->enabled = false;
$this->validate();
@@ -73,6 +74,7 @@ class Email extends Component
$this->settings->smtp->test_recipients = str_replace(' ', '', $this->settings->smtp->test_recipients);
$this->settings->save();
$this->emit('success', 'Transaction email settings updated successfully.');
$this->decrypt();
}
}