mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-18 06:57:05 +00:00
#764 -- Switch to number type input for "play every x" playlists
This commit is contained in:
parent
cefbb9694b
commit
3c9ee1bc78
|
@ -266,11 +266,17 @@ return [
|
|||
'elements' => [
|
||||
|
||||
'play_per_songs' => [
|
||||
'select',
|
||||
'number',
|
||||
[
|
||||
'label' => __('Number of Songs Between Plays'),
|
||||
'description' => __('This playlist will play every $x songs, where $x is specified below.'),
|
||||
'options' => \App\Utilities::pairs(range(1, 100)),
|
||||
'default' => 1,
|
||||
'step' => 1,
|
||||
'min' => 1,
|
||||
'max' => 150,
|
||||
'filter' => function($val) {
|
||||
return (int)$val;
|
||||
}
|
||||
]
|
||||
],
|
||||
|
||||
|
@ -283,11 +289,17 @@ return [
|
|||
'elements' => [
|
||||
|
||||
'play_per_minutes' => [
|
||||
'select',
|
||||
'number',
|
||||
[
|
||||
'label' => __('Number of Minutes Between Plays'),
|
||||
'description' => __('This playlist will play every $x minutes, where $x is specified below.'),
|
||||
'options' => \App\Utilities::pairs(range(1, 240)),
|
||||
'default' => 1,
|
||||
'step' => 1,
|
||||
'min' => 1,
|
||||
'max' => 120,
|
||||
'filter' => function($val) {
|
||||
return (int)$val;
|
||||
}
|
||||
]
|
||||
],
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user