diff --git a/modules/Mailgateway/Components/Form.php b/modules/Mailgateway/Components/Form.php
index 9eb57979..650da197 100644
--- a/modules/Mailgateway/Components/Form.php
+++ b/modules/Mailgateway/Components/Form.php
@@ -90,7 +90,7 @@ class Form extends Component
Mailgateway::create($payload);
}
$this->dispatch('closeModal');
- $this->dispatch('refresh');
+ $this->dispatch('refresh-page');
$this->dispatch('success', 'Erfolgreich gespeichert.');
}
diff --git a/modules/Mailgateway/Components/SettingView.php b/modules/Mailgateway/Components/SettingView.php
index 2ec0c789..b6d892ea 100644
--- a/modules/Mailgateway/Components/SettingView.php
+++ b/modules/Mailgateway/Components/SettingView.php
@@ -10,8 +10,6 @@ class SettingView extends Component
{
public string $settingClass = MailgatewaySettings::class;
- public $listeners = ['refresh' => '$refresh'];
-
public function render()
{
return view('mailgateway::setting-view', [
diff --git a/modules/Mailgateway/StoreTest.php b/modules/Mailgateway/StoreTest.php
index b2c2f7dd..0798225c 100644
--- a/modules/Mailgateway/StoreTest.php
+++ b/modules/Mailgateway/StoreTest.php
@@ -22,7 +22,7 @@ it('test it saves a mail gateway', function () {
->set('cls', LocalType::class)
->call('onSave')
->assertDispatched('closeModal')
- ->assertDispatched('refresh')
+ ->assertDispatched('refresh-page')
->assertDispatched('success');
$this->assertDatabaseHas('mailgateways', [
@@ -54,7 +54,7 @@ it('test it validates mail gateway', function (array $attributes, array $errors)
->call('onSave')
->assertHasErrors($errors)
->assertNotDispatched('closeModal')
- ->assertNotDispatched('refresh')
+ ->assertNotDispatched('refresh-page')
->assertNotDispatched('success');
})->with([
[['name' => ''], ['name' => 'required']],