diff --git a/backoffice/app/templates/book.html b/backoffice/app/templates/book.html
index 4ab6529..e127fbb 100644
--- a/backoffice/app/templates/book.html
+++ b/backoffice/app/templates/book.html
@@ -142,7 +142,13 @@
}
var visible = [];
resourceOptionsEl.querySelectorAll('.opt').forEach(function (btn) {
- var matches = !selectedLocation || btn.getAttribute('data-location-id') === selectedLocation;
+ // With a single Filiale (or none at all) there's nothing to filter
+ // by, same as before Filialen existed. With multiple, a barber only
+ // matches once its own Filiale is actually selected -- before that,
+ // nothing should show (mixing unrelated locations' staff together
+ // would be actively misleading, not just unfiltered).
+ var matches = LOCATIONS.length <= 1
+ || (!!selectedLocation && btn.getAttribute('data-location-id') === selectedLocation);
btn.hidden = !matches;
if (matches) {
visible.push(btn);