Update success messages

This commit is contained in:
Andras Bacsai committed 2024-02-22 14:53:42 +01:00
1 parent 592221b4bf
commit c7218f2856
32 files changed
+67 -57

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class Database extends Component
$this->validate();
$this->database->save();
updateCompose($this->database);
$this->dispatch('success', 'Database saved successfully.');
$this->dispatch('success', 'Database saved.');
} catch (\Throwable $e) {
ray($e);
} finally {
+1 -1
View File
@@ -42,7 +42,7 @@ class FileStorage extends Component
}
$this->fileStorage->save();
$this->fileStorage->saveStorageOnServer();
$this->dispatch('success', 'File updated successfully.');
$this->dispatch('success', 'File updated.');
} catch (\Throwable $e) {
$this->fileStorage->setRawAttributes($original);
$this->fileStorage->save();
+2 -2
View File
@@ -64,9 +64,9 @@ class Navbar extends Component
StopService::run($this->service);
$this->service->refresh();
if ($forceCleanup) {
$this->dispatch('success', 'Force cleanup service successfully.');
$this->dispatch('success', 'Force cleanup service.');
} else {
$this->dispatch('success', 'Service stopped successfully.');
$this->dispatch('success', 'Service stopped.');
}
ServiceStatusChanged::dispatch();
}
@@ -41,7 +41,7 @@ class ServiceApplicationView extends Component
{
try {
$this->application->delete();
$this->dispatch('success', 'Application deleted successfully.');
$this->dispatch('success', 'Application deleted.');
return redirect()->route('project.service.configuration', $this->parameters);
} catch (\Throwable $e) {
return handleError($e, $this);
@@ -58,7 +58,7 @@ class ServiceApplicationView extends Component
$this->validate();
$this->application->save();
updateCompose($this->application);
$this->dispatch('success', 'Application saved successfully.');
$this->dispatch('success', 'Application saved.');
} catch (\Throwable $e) {
return handleError($e, $this);
} finally {
+2 -2
View File
@@ -48,7 +48,7 @@ class StackForm extends Component
public function instantSave()
{
$this->service->save();
$this->dispatch('success', 'Service settings saved successfully.');
$this->dispatch('success', 'Service settings saved.');
}
public function submit()
@@ -62,7 +62,7 @@ class StackForm extends Component
$this->service->saveComposeConfigs();
$this->dispatch('refreshStacks');
$this->dispatch('refreshEnvs');
$this->dispatch('success', 'Service saved successfully.');
$this->dispatch('success', 'Service saved.');
} catch (\Throwable $e) {
return handleError($e, $this);
}