Sort radio stations by name
This commit is contained in:
@@ -51,7 +51,7 @@ func (api *Router) DeleteInternetRadio(r *http.Request) (*responses.Subsonic, er
|
|||||||
|
|
||||||
func (api *Router) GetInternetRadios(r *http.Request) (*responses.Subsonic, error) {
|
func (api *Router) GetInternetRadios(r *http.Request) (*responses.Subsonic, error) {
|
||||||
ctx := r.Context()
|
ctx := r.Context()
|
||||||
radios, err := api.ds.Radio(ctx).GetAll()
|
radios, err := api.ds.Radio(ctx).GetAll(model.QueryOptions{Sort: "name"})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ const RadioList = ({ permissions, ...props }) => {
|
|||||||
<List
|
<List
|
||||||
{...props}
|
{...props}
|
||||||
exporter={false}
|
exporter={false}
|
||||||
|
sort={{ field: 'name', order: 'ASC' }}
|
||||||
bulkActionButtons={isAdmin ? undefined : false}
|
bulkActionButtons={isAdmin ? undefined : false}
|
||||||
hasCreate={isAdmin}
|
hasCreate={isAdmin}
|
||||||
actions={<RadioListActions isAdmin={isAdmin} />}
|
actions={<RadioListActions isAdmin={isAdmin} />}
|
||||||
|
|||||||
Reference in New Issue
Block a user