fix: notifications ui
This commit is contained in:
@@ -50,22 +50,22 @@ class Email extends Component
|
|||||||
public ?int $smtpTimeout = null;
|
public ?int $smtpTimeout = null;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsTest;
|
public bool $smtpNotificationsTest = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsDeployments;
|
public bool $smtpNotificationsDeployments = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsStatusChanges;
|
public bool $smtpNotificationsStatusChanges = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsDatabaseBackups;
|
public bool $smtpNotificationsDatabaseBackups = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsScheduledTasks;
|
public bool $smtpNotificationsScheduledTasks = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $smtpNotificationsServerDiskUsage;
|
public bool $smtpNotificationsServerDiskUsage = false;
|
||||||
|
|
||||||
#[Validate(['boolean'])]
|
#[Validate(['boolean'])]
|
||||||
public bool $resendEnabled;
|
public bool $resendEnabled;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace App\Livewire\Server;
|
|||||||
use App\Actions\Server\StartSentinel;
|
use App\Actions\Server\StartSentinel;
|
||||||
use App\Actions\Server\StopSentinel;
|
use App\Actions\Server\StopSentinel;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
|
use Livewire\Attributes\Locked;
|
||||||
use Livewire\Attributes\Validate;
|
use Livewire\Attributes\Validate;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
@@ -16,7 +17,7 @@ class Show extends Component
|
|||||||
public string $name;
|
public string $name;
|
||||||
|
|
||||||
#[Validate(['nullable'])]
|
#[Validate(['nullable'])]
|
||||||
public ?string $description;
|
public ?string $description = null;
|
||||||
|
|
||||||
#[Validate(['required'])]
|
#[Validate(['required'])]
|
||||||
public string $ip;
|
public string $ip;
|
||||||
@@ -31,7 +32,7 @@ class Show extends Component
|
|||||||
public ?string $validationLogs = null;
|
public ?string $validationLogs = null;
|
||||||
|
|
||||||
#[Validate(['nullable', 'url'])]
|
#[Validate(['nullable', 'url'])]
|
||||||
public ?string $wildcardDomain;
|
public ?string $wildcardDomain = null;
|
||||||
|
|
||||||
#[Validate(['required'])]
|
#[Validate(['required'])]
|
||||||
public bool $isReachable;
|
public bool $isReachable;
|
||||||
@@ -55,7 +56,7 @@ class Show extends Component
|
|||||||
public string $sentinelToken;
|
public string $sentinelToken;
|
||||||
|
|
||||||
#[Validate(['nullable'])]
|
#[Validate(['nullable'])]
|
||||||
public ?string $sentinelUpdatedAt;
|
public ?string $sentinelUpdatedAt = null;
|
||||||
|
|
||||||
#[Validate(['required', 'integer', 'min:1'])]
|
#[Validate(['required', 'integer', 'min:1'])]
|
||||||
public int $sentinelMetricsRefreshRateSeconds;
|
public int $sentinelMetricsRefreshRateSeconds;
|
||||||
@@ -67,7 +68,7 @@ class Show extends Component
|
|||||||
public int $sentinelPushIntervalSeconds;
|
public int $sentinelPushIntervalSeconds;
|
||||||
|
|
||||||
#[Validate(['nullable', 'url'])]
|
#[Validate(['nullable', 'url'])]
|
||||||
public ?string $sentinelCustomUrl;
|
public ?string $sentinelCustomUrl = null;
|
||||||
|
|
||||||
#[Validate(['required'])]
|
#[Validate(['required'])]
|
||||||
public bool $isSentinelEnabled;
|
public bool $isSentinelEnabled;
|
||||||
@@ -78,6 +79,7 @@ class Show extends Component
|
|||||||
#[Validate(['required'])]
|
#[Validate(['required'])]
|
||||||
public string $serverTimezone;
|
public string $serverTimezone;
|
||||||
|
|
||||||
|
#[Locked]
|
||||||
public array $timezones;
|
public array $timezones;
|
||||||
|
|
||||||
public function getListeners()
|
public function getListeners()
|
||||||
|
|||||||
Reference in New Issue
Block a user