filter list of locations on backend side (GET location endpoint)

This commit is contained in:
2021-10-15 12:01:57 +02:00
parent d0dd99db9a
commit ada9efc75d
3 changed files with 32 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ export default {
getLocationsList() {
getLocations().then(response => new Promise(resolve => {
console.log('getLocations', response);
this.locations = response.results.filter(l => l.availableForUsers === true);
this.locations = response.results;
resolve();
}))
},