mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: improve canteen related views
This commit is contained in:
@@ -26,6 +26,26 @@ export class FoodDataListComponent extends SearchPageComponent {
|
||||
* Sets the forced filter to present only places for eating/drinking
|
||||
*/
|
||||
initialize() {
|
||||
if (this.positionService.position) {
|
||||
this.sortQuery = {
|
||||
type: 'distance',
|
||||
order: 'asc',
|
||||
arguments: {
|
||||
field: 'geo.point.coordinates',
|
||||
position: [
|
||||
this.positionService.position.longitude,
|
||||
this.positionService.position.latitude,
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
this.sortQuery = {
|
||||
arguments: {field: 'name'},
|
||||
order: 'asc',
|
||||
type: 'ducet',
|
||||
};
|
||||
|
||||
this.forcedFilter = {
|
||||
arguments: {
|
||||
filters: [
|
||||
|
||||
Reference in New Issue
Block a user