mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 07:27:47 +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',
|
'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) {
|
if ($this->refresh_time < 60) {
|
||||||
$this->refresh_time = null;
|
$this->refresh_time = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,12 @@ new class extends Component {
|
||||||
'refresh_time' => 'nullable|integer|min:60',
|
'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) {
|
if ($this->refresh_time < 60) {
|
||||||
$this->refresh_time = null;
|
$this->refresh_time = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue