Skip to content

Commit

Permalink
fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Feb 22, 2023
1 parent 0fae379 commit d336a60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Filament/Pages/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,17 @@ protected function getFormSchema(): array
TextInput::make('name')->label(function ($get) {
return match ($get('type')) {
'email' => 'Name receiver',
'discord', 'slack' => 'Label'
'discord', 'slack' => 'Label',
null => 'Name receiver' // Fallback for previous roadmap users
};
})->required(),
TextInput::make('webhook')
->label(function ($get) {
return match ($get('type')) {
'email' => 'E-mail',
'discord' => 'Discord webhook URL',
'slack' => 'Slack webhook URL'
'slack' => 'Slack webhook URL',
null => 'E-mail' // Fallback for previous roadmap users
};
})
->required()
Expand Down

0 comments on commit d336a60

Please sign in to comment.