mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
fix: enable reset of active_from, active_until for playlists
This commit is contained in:
parent
56a29e8aed
commit
f767d39c8f
2 changed files with 12 additions and 0 deletions
|
|
@ -196,6 +196,12 @@ new class extends Component {
|
|||
'refresh_time' => 'nullable|integer|min:60',
|
||||
]);
|
||||
|
||||
if (empty($this->active_from)) {
|
||||
$this->active_from = null;
|
||||
}
|
||||
if (empty($this->active_until)) {
|
||||
$this->active_until = null;
|
||||
}
|
||||
if ($this->refresh_time < 60) {
|
||||
$this->refresh_time = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,6 +96,12 @@ new class extends Component {
|
|||
'refresh_time' => 'nullable|integer|min:60',
|
||||
]);
|
||||
|
||||
if (empty($this->active_from)) {
|
||||
$this->active_from = null;
|
||||
}
|
||||
if (empty($this->active_until)) {
|
||||
$this->active_until = null;
|
||||
}
|
||||
if ($this->refresh_time < 60) {
|
||||
$this->refresh_time = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue