Skip to content

Commit d7c91d2

Browse files
authored
Disable database notifications by default (#88)
1 parent 4a9153f commit d7c91d2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/Filament/Pages/Settings/InfluxDbPage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ protected function getFormSchema(): array
3838
Section::make('InfluxDB v2 Settings')
3939
->schema([
4040
Toggle::make('v2_enabled')
41-
->label('Enabled')
42-
->inline(false)
41+
->label('Enable')
4342
->columnSpan(2),
4443
TextInput::make('v2_url')
4544
->label('URL')

database/settings/2022_10_24_153150_create_database_notifications_settings.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class CreateDatabaseNotificationsSettings extends SettingsMigration
66
{
77
public function up(): void
88
{
9-
$this->migrator->add('notification.database_enabled', true);
10-
$this->migrator->add('notification.database_on_speedtest_run', true);
11-
$this->migrator->add('notification.database_on_threshold_failure', true);
9+
$this->migrator->add('notification.database_enabled', false);
10+
$this->migrator->add('notification.database_on_speedtest_run', false);
11+
$this->migrator->add('notification.database_on_threshold_failure', false);
1212
}
1313
}

0 commit comments

Comments
 (0)