An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Update success messages
Andras Bacsaic7218f2856db
diff --git a/app/Livewire/Notifications/EmailSettings.php b/app/Livewire/Notifications/EmailSettings.phpindex cdbaef051d..b6152907d1 100644--- a/app/Livewire/Notifications/EmailSettings.php+++ b/app/Livewire/Notifications/EmailSettings.php@@ -63,7 +63,7 @@ class EmailSettings extends Component]);$this->team->save();refreshSession();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -71,7 +71,7 @@ class EmailSettings extends Componentpublic function sendTestNotification(){$this->team?->notify(new Test($this->emails));- $this->dispatch('success', 'Test Email sent successfully.');+ $this->dispatch('success', 'Test Email sent.');}public function instantSaveInstance(){@@ -83,7 +83,7 @@ class EmailSettings extends Component$this->team->resend_enabled = false;$this->team->save();refreshSession();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -131,7 +131,7 @@ class EmailSettings extends Component]);$this->team->save();refreshSession();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {$this->team->smtp_enabled = false;return handleError($e, $this);@@ -148,7 +148,7 @@ class EmailSettings extends Component]);$this->team->save();refreshSession();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {$this->team->resend_enabled = false;return handleError($e, $this);diff --git a/app/Livewire/Profile/Index.php b/app/Livewire/Profile/Index.phpindex 0a2a347667..3499d4ff97 100644--- a/app/Livewire/Profile/Index.php+++ b/app/Livewire/Profile/Index.php@@ -27,7 +27,7 @@ class Index extends Component'name' => $this->name,]);- $this->dispatch('success', 'Profile updated successfully.');+ $this->dispatch('success', 'Profile updated');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Application/Preview/Form.php b/app/Livewire/Project/Application/Preview/Form.phpindex 0da8b1d761..6826e154b6 100644--- a/app/Livewire/Project/Application/Preview/Form.php+++ b/app/Livewire/Project/Application/Preview/Form.php@@ -46,7 +46,7 @@ class Form extends Component$this->validate();$this->application->preview_url_template = str_replace(' ', '', $this->application->preview_url_template);$this->application->save();- $this->dispatch('success', 'Preview url template updated successfully.');+ $this->dispatch('success', 'Preview url template updated.');$this->generate_real_url();}}diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.phpindex f1918f990d..c78a8cbee5 100644--- a/app/Livewire/Project/Database/BackupExecutions.php+++ b/app/Livewire/Project/Database/BackupExecutions.php@@ -33,7 +33,7 @@ class BackupExecutions extends Componentdelete_backup_locally($execution->filename, $execution->scheduledDatabaseBackup->database->destination->server);}$execution->delete();- $this->dispatch('success', 'Backup deleted successfully.');+ $this->dispatch('success', 'Backup deleted.');$this->dispatch('refreshBackupExecutions');}public function download($exeuctionId)diff --git a/app/Livewire/Project/Database/Heading.php b/app/Livewire/Project/Database/Heading.phpindex ed31f8cae0..3031662271 100644--- a/app/Livewire/Project/Database/Heading.php+++ b/app/Livewire/Project/Database/Heading.php@@ -38,7 +38,7 @@ class Heading extends Component{dispatch_sync(new ContainerStatusJob($this->database->destination->server));$this->database->refresh();- if ($showNotification) $this->dispatch('success', 'Success', 'Database status updated.');+ if ($showNotification) $this->dispatch('success', 'Database status updated.');}public function mount()diff --git a/app/Livewire/Project/Database/Mariadb/General.php b/app/Livewire/Project/Database/Mariadb/General.phpindex 305633cbaa..9b15c6c3c5 100644--- a/app/Livewire/Project/Database/Mariadb/General.php+++ b/app/Livewire/Project/Database/Mariadb/General.php@@ -59,7 +59,7 @@ class General extends Componentreturn;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');$this->dispatch('success', 'You need to restart the service for the changes to take effect.');} catch (Exception $e) {return handleError($e, $this);@@ -73,7 +73,7 @@ class General extends Component}$this->validate();$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');} catch (Exception $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Database/Mongodb/General.php b/app/Livewire/Project/Database/Mongodb/General.phpindex 70f54cc3f4..cd3ea06309 100644--- a/app/Livewire/Project/Database/Mongodb/General.php+++ b/app/Livewire/Project/Database/Mongodb/General.php@@ -58,7 +58,7 @@ class General extends Componentreturn;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');$this->dispatch('success', 'You need to restart the service for the changes to take effect.');} catch (Exception $e) {return handleError($e, $this);@@ -75,7 +75,7 @@ class General extends Component}$this->validate();$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');} catch (Exception $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Database/Mysql/General.php b/app/Livewire/Project/Database/Mysql/General.phpindex 98b16a1128..2470a934bc 100644--- a/app/Livewire/Project/Database/Mysql/General.php+++ b/app/Livewire/Project/Database/Mysql/General.php@@ -60,7 +60,7 @@ class General extends Componentreturn;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');$this->dispatch('success', 'You need to restart the service for the changes to take effect.');} catch (Exception $e) {return handleError($e, $this);@@ -74,7 +74,7 @@ class General extends Component}$this->validate();$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');} catch (Exception $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Database/Postgresql/General.php b/app/Livewire/Project/Database/Postgresql/General.phpindex 6fa5df97cd..43f5591400 100644--- a/app/Livewire/Project/Database/Postgresql/General.php+++ b/app/Livewire/Project/Database/Postgresql/General.php@@ -66,7 +66,7 @@ class General extends Componentreturn;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');$this->dispatch('success', 'You need to restart the service for the changes to take effect.');} catch (Exception $e) {return handleError($e, $this);@@ -105,7 +105,7 @@ class General extends Component$this->database->init_scripts = filter($this->database->init_scripts, fn ($s) => $s['filename'] !== $script['filename']);$this->database->init_scripts = array_merge($this->database->init_scripts, [$script]);$this->database->save();- $this->dispatch('success', 'Init script saved successfully.');+ $this->dispatch('success', 'Init script saved.');}public function delete_init_script($script)@@ -116,7 +116,7 @@ class General extends Component$this->database->init_scripts = $collection->filter(fn ($s) => $s['filename'] !== $script['filename'])->toArray();$this->database->save();$this->refresh();- $this->dispatch('success', 'Init script deleted successfully.');+ $this->dispatch('success', 'Init script deleted.');return;}}@@ -148,7 +148,7 @@ class General extends Component]]);$this->database->save();- $this->dispatch('success', 'Init script added successfully.');+ $this->dispatch('success', 'Init script added.');$this->new_content = '';$this->new_filename = '';}@@ -161,7 +161,7 @@ class General extends Component}$this->validate();$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');} catch (Exception $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.phpindex c328a61950..07c161de55 100644--- a/app/Livewire/Project/Database/Redis/General.php+++ b/app/Livewire/Project/Database/Redis/General.php@@ -52,7 +52,7 @@ class General extends Componentreturn;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');$this->dispatch('success', 'You need to restart the service for the changes to take effect.');} catch (Exception $e) {return handleError($e, $this);@@ -66,7 +66,7 @@ class General extends Component$this->database->redis_conf = null;}$this->database->save();- $this->dispatch('success', 'Database updated successfully.');+ $this->dispatch('success', 'Database updated.');} catch (Exception $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Database/ScheduledBackups.php b/app/Livewire/Project/Database/ScheduledBackups.phpindex 2fc4d069e6..399fddac4f 100644--- a/app/Livewire/Project/Database/ScheduledBackups.php+++ b/app/Livewire/Project/Database/ScheduledBackups.php@@ -38,7 +38,7 @@ class ScheduledBackups extends Componentpublic function delete($scheduled_backup_id): void{$this->database->scheduledBackups->find($scheduled_backup_id)->delete();- $this->dispatch('success', 'Scheduled backup deleted successfully.');+ $this->dispatch('success', 'Scheduled backup deleted.');$this->refreshScheduledBackups();}diff --git a/app/Livewire/Project/Service/Database.php b/app/Livewire/Project/Service/Database.phpindex e7be1ff2e0..8dec97852f 100644--- a/app/Livewire/Project/Service/Database.php+++ b/app/Livewire/Project/Service/Database.php@@ -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 {diff --git a/app/Livewire/Project/Service/FileStorage.php b/app/Livewire/Project/Service/FileStorage.phpindex da85a1a6e7..2abfcdf5eb 100644--- a/app/Livewire/Project/Service/FileStorage.php+++ b/app/Livewire/Project/Service/FileStorage.php@@ -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();diff --git a/app/Livewire/Project/Service/Navbar.php b/app/Livewire/Project/Service/Navbar.phpindex 2eb9f938c0..fda86321b1 100644--- a/app/Livewire/Project/Service/Navbar.php+++ b/app/Livewire/Project/Service/Navbar.php@@ -64,9 +64,9 @@ class Navbar extends ComponentStopService::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();}diff --git a/app/Livewire/Project/Service/ServiceApplicationView.php b/app/Livewire/Project/Service/ServiceApplicationView.phpindex 53532a855f..2bae41a806 100644--- a/app/Livewire/Project/Service/ServiceApplicationView.php+++ b/app/Livewire/Project/Service/ServiceApplicationView.php@@ -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 {diff --git a/app/Livewire/Project/Service/StackForm.php b/app/Livewire/Project/Service/StackForm.phpindex 44672fe64b..1ec63a7617 100644--- a/app/Livewire/Project/Service/StackForm.php+++ b/app/Livewire/Project/Service/StackForm.php@@ -48,7 +48,7 @@ class StackForm extends Componentpublic 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);}diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/All.php b/app/Livewire/Project/Shared/EnvironmentVariable/All.phpindex 28aac7ce32..3a304d3e9b 100644--- a/app/Livewire/Project/Shared/EnvironmentVariable/All.php+++ b/app/Livewire/Project/Shared/EnvironmentVariable/All.php@@ -120,9 +120,9 @@ class All extends Component}}if ($isPreview) {- $this->dispatch('success', 'Preview environment variables updated successfully.');+ $this->dispatch('success', 'Preview environment variables updated.');} else {- $this->dispatch('success', 'Environment variables updated successfully.');+ $this->dispatch('success', 'Environment variables updated.');}$this->refreshEnvs();}diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.phpindex 1494707e78..9252c44f89 100644--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php@@ -90,7 +90,7 @@ class Show extends Component}$this->serialize();$this->env->save();- $this->dispatch('success', 'Environment variable updated successfully.');+ $this->dispatch('success', 'Environment variable updated.');$this->dispatch('refreshEnvs');} catch (\Exception $e) {return handleError($e);diff --git a/app/Livewire/Project/Shared/ResourceLimits.php b/app/Livewire/Project/Shared/ResourceLimits.phpindex 8b010530c6..a326a9a0b3 100644--- a/app/Livewire/Project/Shared/ResourceLimits.php+++ b/app/Livewire/Project/Shared/ResourceLimits.php@@ -52,7 +52,7 @@ class ResourceLimits extends Component}$this->validate();$this->resource->save();- $this->dispatch('success', 'Resource limits updated successfully.');+ $this->dispatch('success', 'Resource limits updated.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Shared/ScheduledTask/All.php b/app/Livewire/Project/Shared/ScheduledTask/All.phpindex 4a876e72a0..975d695fa8 100644--- a/app/Livewire/Project/Shared/ScheduledTask/All.php+++ b/app/Livewire/Project/Shared/ScheduledTask/All.php@@ -48,7 +48,7 @@ class All extends Component}$task->save();$this->refreshTasks();- $this->dispatch('success', 'Scheduled task added successfully.');+ $this->dispatch('success', 'Scheduled task added.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Project/Shared/ScheduledTask/Show.php b/app/Livewire/Project/Shared/ScheduledTask/Show.phpindex 23cb0e41a4..87b7525092 100644--- a/app/Livewire/Project/Shared/ScheduledTask/Show.php+++ b/app/Livewire/Project/Shared/ScheduledTask/Show.php@@ -49,7 +49,7 @@ class Show extends Component{$this->validate();$this->task->save();- $this->dispatch('success', 'Scheduled task updated successfully.');+ $this->dispatch('success', 'Scheduled task updated.');$this->dispatch('refreshTasks');}diff --git a/app/Livewire/Server/Form.php b/app/Livewire/Server/Form.phpindex 75e65c319a..098a7c1fff 100644--- a/app/Livewire/Server/Form.php+++ b/app/Livewire/Server/Form.php@@ -64,7 +64,7 @@ class Form extends Componentrefresh_server_connection($this->server->privateKey);$this->validateServer(false);$this->server->settings->save();- $this->dispatch('success', 'Server updated successfully.');+ $this->dispatch('success', 'Server updated.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -113,6 +113,6 @@ class Form extends Component$this->server->settings->cleanup_after_percentage = $this->cleanup_after_percentage;$this->server->settings->save();$this->server->save();- $this->dispatch('success', 'Server updated successfully.');+ $this->dispatch('success', 'Server updated.');}}diff --git a/app/Livewire/Server/LogDrains.php b/app/Livewire/Server/LogDrains.phpindex b922cc0c9b..4eca682d49 100644--- a/app/Livewire/Server/LogDrains.php+++ b/app/Livewire/Server/LogDrains.php@@ -60,7 +60,7 @@ class LogDrains extends Componentreturn;}$this->dispatch('serverRefresh');- $this->dispatch('success', 'Log drain service started successfully.');+ $this->dispatch('success', 'Log drain service started.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -126,7 +126,7 @@ class LogDrains extends Component]);}$this->server->settings->save();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');return true;} catch (\Throwable $e) {if ($type === 'newrelic') {diff --git a/app/Livewire/Server/Proxy/DynamicConfigurationNavbar.php b/app/Livewire/Server/Proxy/DynamicConfigurationNavbar.phpindex acff38ccb1..ee46a3ffff 100644--- a/app/Livewire/Server/Proxy/DynamicConfigurationNavbar.php+++ b/app/Livewire/Server/Proxy/DynamicConfigurationNavbar.php@@ -17,7 +17,7 @@ class DynamicConfigurationNavbar extends Component$proxy_path = get_proxy_path();$file = str_replace('|', '.', $fileName);instant_remote_process(["rm -f {$proxy_path}/dynamic/{$file}"], $server);- $this->dispatch('success', 'Success', 'File deleted.');+ $this->dispatch('success', 'File deleted.');$this->dispatch('loadDynamicConfigurations');$this->dispatch('refresh');}diff --git a/app/Livewire/Server/Proxy/NewDynamicConfiguration.php b/app/Livewire/Server/Proxy/NewDynamicConfiguration.phpindex 28b083ca80..c9ceb41ee7 100644--- a/app/Livewire/Server/Proxy/NewDynamicConfiguration.php+++ b/app/Livewire/Server/Proxy/NewDynamicConfiguration.php@@ -43,7 +43,7 @@ class NewDynamicConfiguration extends Component$this->fileName = "{$this->fileName}.yaml";}if ($this->fileName === 'coolify.yaml') {- $this->dispatch('error', 'Error', 'File name is reserved.');+ $this->dispatch('error', 'File name is reserved.');return;}$proxy_path = get_proxy_path();@@ -51,7 +51,7 @@ class NewDynamicConfiguration extends Componentif ($this->newFile) {$exists = instant_remote_process(["test -f $file && echo 1 || echo 0"], $this->server);if ($exists == 1) {- $this->dispatch('error', 'Error', 'File already exists');+ $this->dispatch('error', 'File already exists');return;}}@@ -62,7 +62,7 @@ class NewDynamicConfiguration extends Componentinstant_remote_process(["echo '{$base64_value}' | base64 -d > {$file}"], $this->server);$this->dispatch('loadDynamicConfigurations');$this->dispatch('dynamic-configuration-added');- $this->dispatch('success', 'Success', 'Dynamic configuration saved.');+ $this->dispatch('success', 'Dynamic configuration saved.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Server/ValidateAndInstall.php b/app/Livewire/Server/ValidateAndInstall.phpindex 4fa92644d8..ff623e972a 100644--- a/app/Livewire/Server/ValidateAndInstall.php+++ b/app/Livewire/Server/ValidateAndInstall.php@@ -124,7 +124,7 @@ class ValidateAndInstall extends Component$this->docker_version = $this->server->validateDockerEngineVersion();if ($this->docker_version) {$this->dispatch('serverInstalled');- $this->dispatch('success', 'Server validated successfully.');+ $this->dispatch('success', 'Server validated.');} else {$this->error = 'Docker Engine version is not 22+. Please install Docker manually before continuing: <a target="_blank" class="underline" href="https://docs.docker.com/engine/install/#server">documentation</a>.';return;diff --git a/app/Livewire/Settings/Backup.php b/app/Livewire/Settings/Backup.phpindex 519fe1bd8c..67a4577741 100644--- a/app/Livewire/Settings/Backup.php+++ b/app/Livewire/Settings/Backup.php@@ -81,6 +81,6 @@ class Backup extends Component}public function submit(){- $this->dispatch('success', 'Backup updated successfully.');+ $this->dispatch('success', 'Backup updated.');}}diff --git a/app/Livewire/Settings/Email.php b/app/Livewire/Settings/Email.phpindex 471c18e9c7..3563e2e640 100644--- a/app/Livewire/Settings/Email.php+++ b/app/Livewire/Settings/Email.php@@ -49,7 +49,7 @@ class Email extends Component'settings.smtp_from_name' => 'required',]);$this->settings->save();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -61,7 +61,7 @@ class Email extends Component'settings.resend_api_key' => 'required']);$this->settings->save();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {$this->settings->resend_enabled = false;return handleError($e, $this);@@ -98,7 +98,7 @@ class Email extends Component'settings.smtp_timeout' => 'nullable',]);$this->settings->save();- $this->dispatch('success', 'Settings saved successfully.');+ $this->dispatch('success', 'Settings saved.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.phpindex d03f7c08f8..61c4ffcdaf 100644--- a/app/Livewire/Source/Github/Change.php+++ b/app/Livewire/Source/Github/Change.php@@ -47,7 +47,7 @@ class Change extends Component{GithubAppPermissionJob::dispatchSync($this->github_app);$this->github_app->refresh()->makeVisible('client_secret')->makeVisible('webhook_secret');- $this->dispatch('success', 'Success', 'Github App permissions updated.');+ $this->dispatch('success', 'Github App permissions updated.');}// public function check()// {@@ -150,7 +150,7 @@ class Change extends Component'github_app.is_system_wide' => 'required|bool',]);$this->github_app->save();- $this->dispatch('success', 'Success', 'Github App updated.');+ $this->dispatch('success', 'Github App updated.');} catch (\Throwable $e) {return handleError($e, $this);}@@ -161,7 +161,7 @@ class Change extends Componenttry {$this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');$this->github_app->save();- $this->dispatch('success', 'Success', 'Github App updated.');+ $this->dispatch('success', 'Github App updated.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Team/Index.php b/app/Livewire/Team/Index.phpindex b7482e671b..1822620f8a 100644--- a/app/Livewire/Team/Index.php+++ b/app/Livewire/Team/Index.php@@ -37,7 +37,7 @@ class Index extends Componenttry {$this->team->save();refreshSession();- $this->dispatch('success', 'Team updated successfully.');+ $this->dispatch('success', 'Team updated.');} catch (\Throwable $e) {return handleError($e, $this);}diff --git a/app/Livewire/Team/InviteLink.php b/app/Livewire/Team/InviteLink.phpindex 5f9db3f847..cc9054888f 100644--- a/app/Livewire/Team/InviteLink.php+++ b/app/Livewire/Team/InviteLink.php@@ -79,7 +79,7 @@ class InviteLink extends Component]);$mail->subject('You have been invited to ' . currentTeam()->name . ' on ' . config('app.name') . '.');send_user_an_email($mail, $this->email);- $this->dispatch('success', 'Invitation sent via email successfully.');+ $this->dispatch('success', 'Invitation sent via email.');$this->dispatch('refreshInvitations');return;} else {diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.phpindex d12d30d86a..675c0d0af4 100644--- a/resources/views/layouts/base.blade.php+++ b/resources/views/layouts/base.blade.php@@ -146,7 +146,12 @@}})window.Livewire.on('error', (message) => {- if (message.length > 0) {+ if (message.length == 1) {+ window.toast('Error', {+ type: 'danger',+ description: message[0],+ })+ } else if (message.length == 2) {window.toast(message[0], {type: 'danger',description: message[1],@@ -162,7 +167,12 @@}})window.Livewire.on('success', (message) => {- if (message.length > 0) {+ if (message.length == 1) {+ window.toast('Success', {+ type: 'success',+ description: message[0],+ })+ } else if (message.length == 2) {window.toast(message[0], {type: 'success',description: message[1],