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()
{