kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Cleanup ordering composable
rodzic
33dfeea168
commit
d57932444b
|
@ -29,10 +29,7 @@ export default (orderingConfigName: MaybeRef<RouteWithPreferences | null>) => {
|
||||||
field: (str[0] === '-' || str[0] === '+' ? str.slice(1) : str) as OrderingField
|
field: (str[0] === '-' || str[0] === '+' ? str.slice(1) : str) as OrderingField
|
||||||
})
|
})
|
||||||
|
|
||||||
const onOrderingUpdate = (fn: () => void) => {
|
const onOrderingUpdate = (fn: () => void) => watch(config, fn)
|
||||||
const stop = watch(config, fn)
|
|
||||||
return stop
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
paginateBy,
|
paginateBy,
|
||||||
|
|
Ładowanie…
Reference in New Issue