mirror of
https://github.com/navidrome/navidrome.git
synced 2026-02-02 06:24:14 +00:00
Sort radio stations by name
This commit is contained in:
parent
317d179d21
commit
4bbfa17bdf
@ -51,7 +51,7 @@ func (api *Router) DeleteInternetRadio(r *http.Request) (*responses.Subsonic, er
|
||||
|
||||
func (api *Router) GetInternetRadios(r *http.Request) (*responses.Subsonic, error) {
|
||||
ctx := r.Context()
|
||||
radios, err := api.ds.Radio(ctx).GetAll()
|
||||
radios, err := api.ds.Radio(ctx).GetAll(model.QueryOptions{Sort: "name"})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@ -101,6 +101,7 @@ const RadioList = ({ permissions, ...props }) => {
|
||||
<List
|
||||
{...props}
|
||||
exporter={false}
|
||||
sort={{ field: 'name', order: 'ASC' }}
|
||||
bulkActionButtons={isAdmin ? undefined : false}
|
||||
hasCreate={isAdmin}
|
||||
actions={<RadioListActions isAdmin={isAdmin} />}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user